2011/7/7 Chris Lamb <[email protected]>:
>> 2011/7/7 Chris Lamb <[email protected]>:
>> > As I mentioned in the grandparent to this mail, __GLIBC__ is not
>> > defined here.
>>
>> It is, but only after <features.h> has been included.
>
> Please read the mail I referred to - including <features.h> does not
> work.

Sorry I wasn't clear enough, there's no need to #include <features.h>.
 __GLIBC__ is a pre-processor macro on GNU/kFreeBSD and __linux__ is a
pre-processor macro on GNU/Linux.  So the following:

#if defined(__linux__) || defined(__GLIBC__)

will work on (at least) these two platforms.

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/CAOfDtXNwV3JNN=GNikubJ7Y=vN=kdzntg8bjjabx5ippcbn...@mail.gmail.com

Reply via email to