Re: GCC Preprocessor directives for GNU/Hurd?
On Thu, 2015-12-17 at 18:13 +0900, Roger Shimizu wrote:
> Dear Hurd Maintainer,
> I'm trying to make the package I maintain, wide-dhcpv6, to be able to
> build on hurd-i386 platform.
> I did kFreeBSD port a few days ago by referring a kFreeBSD wiki page .
> The table is quite clear how to detect FreeBSD, kFreeBSD, Linux.
> So I easily created the patch , and after upload it's confirmed to
> build well for kFreeBSD .
> Now the pending arch left is only hurd-i386.
> My question is, like kFreeBSD wiki page , what's the preprocessor
> directives for Hurd?
> I googled and find some possible ones:
> * _GNU_SOURCE
> * __GNUC__
> Please help to confirm which one to use.
> After this confirmed, I think it'd better update the info back to the wiki
For GNU/Hurd the preprocessor directive is __GNU__