[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 [0].
> 
> The table is quite clear how to detect FreeBSD, kFreeBSD, Linux.
> So I easily created the patch [1], and after upload it's confirmed to
> build well for kFreeBSD [2][3][4].
> 
> Now the pending arch left is only hurd-i386.
> My question is, like kFreeBSD wiki page [0], 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
> [0].

Hello Roger,

For GNU/Hurd the preprocessor directive is __GNU__

HTH!


Reply to: