bug-gnulib
[Top][All Lists]
Advanced

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

Re: __GLIBC__ and uClibc


From: Bruno Haible
Subject: Re: __GLIBC__ and uClibc
Date: Sat, 20 Nov 2010 22:34:16 +0100
User-agent: KMail/1.9.9

Mike Frysinger wrote:
> On Saturday, November 20, 2010 13:15:48 Bruno Haible wrote:
> > Mike Frysinger writes:
> > > uclibc defines __GLIBC__
> > 
> > More exactly, uClibc *usually* defines __GLIBC__, but not always.
> 
> you can say the same exact thing about glibc.  uClibc defines it in the same 
> way -- via features.h.

What I meant is that uClibc does not define __GLIBC__ if __FORCE_NOGLIBC is
defined.

For this reason, if you want to test for glibc OR uClibc, you can't do
  #if defined __GLIBC__
; you have to write
  #if defined __GLIBC__ || defined __UCLIBC__

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]