diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-20 03:28:45 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-20 03:28:45 +0100 |
commit | 1b5bc6ed268e3f86e5fab50eb42794400e29ea2f (patch) | |
tree | 200a9620cd02a39ba53ce494ea62917d12aaf2d7 /lib/math.in.h | |
parent | a24f9979e9cc7ed0fcc555ef5b6d81bbfcff8146 (diff) | |
download | gnulib-1b5bc6ed268e3f86e5fab50eb42794400e29ea2f.tar.gz |
isnan: Ensure it is a macro.
* lib/math.in.h (isnan): Define as a macro if not already a macro.
* doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
Solaris.
Diffstat (limited to 'lib/math.in.h')
-rw-r--r-- | lib/math.in.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/math.in.h b/lib/math.in.h index 4fbed08d67..0f78264553 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -680,6 +680,10 @@ _GL_EXTERN_C int rpl_isnanl (long double x); sizeof (x) == sizeof (double) ? gl_isnan_d (x) : \ gl_isnan_f (x)) # endif +/* Ensure isnan is a macro. */ +# ifndef isnan +# define isnan isnan +# endif #elif defined GNULIB_POSIXCHECK # if defined isnan _GL_WARN_REAL_FLOATING_DECL (isnan); |