Bruno Haible <[EMAIL PROTECTED]> writes:

> Paul Eggert wrote:
>> > Solaris 10:  isnan() is a function, defined in libc
>> 
>> Not that this affects the conclusion, but the Solaris isnan is present
>> only for legacy apps.  On Solaris 10 isnan is a macro that expands to
>> __builtin_isnan, and __builtin_isnan is done inline.
>
> Huh? On a Solaris 10 / SPARC system I have this in /usr/include:

The macro is defined in <iso/math_c99.h>, which is included indirectly
by math.h.  isnan isn't normally visible as a function.  For example,
on Solaris 10 with Sun C 5.8 Patch 121015-04 2007/01/10:

$ cat t.c
#include <math.h>
int main (void) { return isnan (0.0); }
$ cc -E t.c | grep isnan
extern int isnanf  ( float );
extern int isnanl  ( long double );
int main (void) { return  __builtin_isnan ( 0.0 ); }


Reply via email to