Mercurial > hg > octave-lyh
diff liboctave/lo-cieee.c @ 6061:c968f4198067
[project @ 2006-10-18 20:57:04 by jwe]
author | jwe |
---|---|
date | Wed, 18 Oct 2006 20:57:05 +0000 |
parents | 25c8956d2204 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/liboctave/lo-cieee.c +++ b/liboctave/lo-cieee.c @@ -48,6 +48,21 @@ #include "lo-ieee.h" +#if ! defined (HAVE_ISNAN) && defined (HAVE__ISNAN) +#define isnan _isnan +#define HAVE_ISNAN 1 +#endif + +#if ! defined (HAVE_FINITE) && defined (HAVE__FINITE) +#define finite _finite +#define HAVE_FINITE 1 +#endif + +#if ! defined (HAVE_COPYSIGN) && defined (HAVE__COPYSIGN) +#define copysign _copysign +#define HAVE_COPYSIGN 1 +#endif + #if defined (_AIX) && defined (__GNUG__) #undef finite #define finite(x) ((x) < DBL_MAX && (x) > -DBL_MAX) @@ -118,7 +133,7 @@ int lo_ieee_is_NA (double x) { -#if defined HAVE_ISNAN +#if defined (HAVE_ISNAN) lo_ieee_double t; t.value = x; return (isnan (x) && t.word[lo_ieee_lw] == LO_IEEE_NA_LW) ? 1 : 0;