This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/4596] According to the manual, GCC predefines __POSIX__
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jun 2007 09:55:38 -0000
- Subject: [Bug manual/4596] According to the manual, GCC predefines __POSIX__
- References: <20070607024158.4596.bartoldeman@users.sourceforge.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.