On 2013-07-11 22:03, Tijl Coosemans wrote: > On 2013-07-11 21:36, David Chisnall wrote: >> On 11 Jul 2013, at 19:52, Tijl Coosemans <t...@coosemans.org> wrote: >>>> @@ -227,8 +250,6 @@ double expm1(double); >>>> double fma(double, double, double); >>>> double hypot(double, double); >>>> int ilogb(double) __pure2; >>>> -int (isinf)(double) __pure2; >>>> -int (isnan)(double) __pure2; >>> >>> I think they should stay for the C90 case. >> >> That would completely defeat the point of this entire exercise and be >> redundant unless we aim to support a compiler that only supports C90 >> and no GNU extensions, in which case you'll hit errors in cdefs.h, >> long before you get to this point in an include. > > isnan(double) is part of SUSv2. It should be visible when compiling with > -D_XOPEN_SOURCE=500. I think you need something like this: > > #if (__BSD_VISIBLE || __XSI_VISIBLE <= 500) && __ISO_C_VISIBLE < 1999 > int isinf(double) __pure2; > int isnan(double) __pure2; > #endif
Actually this: #if (__BSD_VISIBLE || (defined(__XSI_VISIBLE) && __XSI_VISIBLE <= 500)) && __ISO_C_VISIBLE < 1999
signature.asc
Description: OpenPGP digital signature