This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't claim GCC predefines __POSIX__
>> How do you test that you are on a POSIX compliant system?
>
> Practically, run autoconf tests for the features you care about,
> which are unlikely to be 100% conformance. ?For 100% conformance,
> run a conformance testsuite - or if anyone does POSIX
> certification, look at a list of certified systems.
I fully understand the complexity of saying a system is or is not
fully POSIX is not trivially detectable by the compiler.
One can get quite far by checking for __POSIX_VERSION__ as well if
using autoconf tests is to heavy.