diff options
author | Andi Gutmans <andi@php.net> | 2001-03-11 19:35:26 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-03-11 19:35:26 +0000 |
commit | dde50d6afdae7ef5eca8c37f885b4dc9e913c99d (patch) | |
tree | 8d2f67a1d568bc717762a567a27ad00a4964b00f /Zend/acconfig.h | |
parent | 397c76d7877cdc82b0e7bf7901ad7dbbd7e84163 (diff) | |
download | php-git-dde50d6afdae7ef5eca8c37f885b4dc9e913c99d.tar.gz |
- Fix for Solaris.
Diffstat (limited to 'Zend/acconfig.h')
-rw-r--r-- | Zend/acconfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/acconfig.h b/Zend/acconfig.h index d88fefb1b7..d5cfefee44 100644 --- a/Zend/acconfig.h +++ b/Zend/acconfig.h @@ -19,6 +19,10 @@ # include <sys/types.h> #endif +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> +#endif + #ifdef HAVE_STRING_H # include <string.h> #else @@ -37,6 +41,8 @@ int zend_sprintf(char *buffer, const char *format, ...); #define zend_isnan(a) isnan(a) #elif defined(NAN) #define zend_isnan(a) (((a)==NAN)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) #else #define zend_isnan(a) 0 #endif @@ -46,6 +52,8 @@ int zend_sprintf(char *buffer, const char *format, ...); #elif defined(INFINITY) /* Might not work, but is required by ISO C99 */ #define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) #else #define zend_isinf(a) 0 #endif |