-
Notifications
You must be signed in to change notification settings - Fork 29
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
Requires CFLAGS='-std=gnu99' to compile on at least CentOS 5.11 #1
Comments
FYI, GCC 4.4.7 and Clang 3.4.2 on CentOS 6.5 don't suffer this issue. |
…e/Infinity-and-NaN.html, a GNU extension. Modern Linux's appear to support by default but older ones do not. Fixes bsdphk#1.
@joakimfors , I've created a patch in my repo, but I don't have an old enough Linux to test it with. Can you try it? |
Perhaps the Makefile generation should be patched to include |
Now that's a worry. GNU decided that NAN was a GNU extension, but the link in my comment states clearly that INFINITY is part of the C99 standard and should exist everywhere. Telling a portable program to compile with GNU extensions is not the right approach imo. You don't by chance have default CFLAGS compiling for std89 or something do you? Note that CentOS is from 2007. |
I have changed NAN which strictly speaking is only for float, to nan("") which is for double. I'm not ever going to add a "-std=gnuanything" option if I can avoid it. |
Don't know if you want these trivial issues. However, Ntimed requires CFLAGS='-std=gnu99' to compile on CentOS 5.11 with gcc 4.11. Otherwise it complains about missing NAN:
The text was updated successfully, but these errors were encountered: