Re: GCC Preprocessor directives for GNU/Hurd?
On Thu, 2015-12-17 at 21:05 +0900, Roger Shimizu wrote:
> > For GNU/Hurd the preprocessor directive is __GNU__
>
> Thanks for your reply!
> I guess like Linux and kFreeBSD, __GLIBC__ is also set in Debian Hurd, right?
>
> BTW. Please CC me when replying. I'd appreciate that!
No, __GLIBC__ is not set by default for Hurd, only when <features.h> is
included:
touch test.h
<empty>
gcc -E -dM ./test.h|grep _GNU_
#define __GNU__ 1
gcc -E -dM ./test.h|grep _GLIBC_
<empty>
cat test.h
#include <features.h>
gcc -E -dM ./test.h|grep __GLIBC__
#define __GLIBC__ 2
Reply to: