Hi!

On Fri, 25 May 2012 01:01:44 +0200, Svante Signell <svante.sign...@telia.com> 
wrote:
> 10_kfreebsd_support.patch needs to to add a __GNU__ statement to take
> effect for GNU/Hurd. It seems that __GLIBC__ is not automatically
> defined.

Indeed __GLIBC__ is only defined once a glibc header has been included,
and thus subsequently its features.h :

    $ echo '' | gcc -dM -E -x c - -o - | grep \#define\ __G\\\(LIBC\\\|NU\\\)__
    #define __GNU__ 1
    $ echo '#include <stdio.h>' | gcc -dM -E -x c - -o - | grep \#define\ 
__G\\\(LIBC\\\|NU\\\)__
    #define __GLIBC__ 2
    #define __GNU__ 1


Grüße,
 Thomas

Attachment: pgpUVSBt55dvM.pgp
Description: PGP signature

Reply via email to