[uClibc]#if defined(__GLIBC__) ???

Steven Scholz steven.scholz at imc-berlin.de
Fri Nov 22 18:27:08 UTC 2002


Hi there,

does uClibc (or the uClibc toolchain) define some stuff like __GLIBC__ so I can
test if the target is build with uClibc or with the real glibc?

I am asking because the PCMCIA CS 3.2.1 has the lines

#if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
#define USE_WORDEXP
#include <wordexp.h>
#else
#include <glob.h>
#endif

in the file cardmgr/lex_config.c. Although I am using uClibc toolchain the above
expression seems to be true since he tries to include wordexp.h and of course
fails!

Thanks,

Steven



More information about the uClibc mailing list