On Sunday 15 September 2013 18:30:32 Yuriy Kaminskiy wrote: > Cristian Rodríguez wrote: > > El 12/09/13 14:17, Yuriy Kaminskiy escribió: > >> This will break on glibc-3.0. > >> > >> #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16) > > > > Yes, that is the correct way, but ensure <features.h> is being included. > > (it seems this patch will be rejected for different reasons anyway, but to > avoid replicating bad recipes...) > > ... unfortunately, condition above won't work properly too, sorry :-( > > When __GLIBC_PREREQ is not defined, preprocessor will error out. So, it > should be either > > #if defined(__GLIBC__) && ((__GLIBC__<<16) | __GLIBC_MINOR__) >= ((2<<16) | > 16)
or nest the ifdefs #ifdef __GLIBC_PREREQ # if __GLIBC_PREREQ(...) -mike
signature.asc
Description: This is a digitally signed message part.
