]> granicus.if.org Git - php/commitdiff
HPUX11 only has isfinite()
authorThies C. Arntzen <thies@php.net>
Mon, 17 Apr 2000 10:39:13 +0000 (10:39 +0000)
committerThies C. Arntzen <thies@php.net>
Mon, 17 Apr 2000 10:39:13 +0000 (10:39 +0000)
Zend/Zend.m4
Zend/zend_operators.c

index 5acdf7c3faaf8becec9ae6dba9e16f779cda01b6..62b7adc43219d2a056e7e516a16e894ab43f2368 100644 (file)
@@ -67,7 +67,7 @@ dnl Checks for library functions.
 AC_FUNC_VPRINTF
 AC_FUNC_MEMCMP
 AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(memcpy strdup getpid kill strtod strtol)
+AC_CHECK_FUNCS(memcpy strdup getpid kill strtod strtol finite)
 AC_ZEND_BROKEN_SPRINTF
        
 AC_SUBST(ZEND_SCANNER)
index 5b05a2d09c93567d58a4be7de58fda9ed84bc701..5df6319d5d3ef27d777a60e2b9d9682ece2f9689 100644 (file)
@@ -32,6 +32,9 @@
 #include "zend_list.h"
 #include "zend_fast_cache.h"
 
+#ifndef HAVE_FINITE
+#define finite(a) isfinite(a)  /* HPUX 11 only has isfinite() */
+#endif
 
 #if WITH_BCMATH
 #include "ext/bcmath/number.h"