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