This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/4596] According to the manual, GCC predefines __POSIX__


------- Additional Comments From jakub at redhat dot com  2007-06-07 09:55 -------
gcc doesn't predefine __POSIX__, but system(posix) assertion on POSIX systems.
So you can test e.g.
#if #system(posix)
# include <unistd.h>
...
#endif
But not sure how portable that is, #assert is a GCC extension, eventhough a
bunch of compilers have it too.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4596

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]