-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch updating Makefile to -std=c11, including <inttypes.h>, and resolving conversion specifier warnings. #54
Comments
For some reason github didn't upload the file with the |
Frustrating, 3rd try pasting:
|
It's definitely fine to fix these issues if they do not cause problems in C89 mode. But, unfortunately, we are stuck on C89 until Microsoft Visual C has supported newer standards for a while, which from I have heard, is not happening anytime soon. |
Just to add a data point: We use sort.h in libxml2 specifically because it only requires C89 and we still want to support some exotic platforms without a C99 compiler. |
Ah, that makes perfect sense. I have to jump through hoops as well writing example for those still using the Windows 7.1 SDK. Nothing like having to define what |
I believe these issues have been addressed by now (regarding use of |
Below is a short patch that resolves numerous warnings and updates the makefile to compile to the C standard that is only 8-years old as opposed to 30-years old. It also resolves the cast of
int64_t
values and the use of%lld
by includinginttypes.h
and using the properPRId64
conversion specifier. Additionally, warnings regardingsigned and unsigned
values used within a conditional expression are resolved via a cast tosize_t
.The text was updated successfully, but these errors were encountered: