]> granicus.if.org Git - php/commitdiff
- Solve floating point precision crash on FreeBSD.
authorAndi Gutmans <andi@php.net>
Sun, 11 Jun 2000 18:07:14 +0000 (18:07 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 11 Jun 2000 18:07:14 +0000 (18:07 +0000)
Zend/zend.c

index ac64615037c5fc4d80d3a742e761a4cd0f8b66d1..a3194731048f366df2514f2cd74f2e497cc31744 100644 (file)
@@ -304,7 +304,7 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals)
 
 #endif
 
-#if 0
+#ifdef __FreeBSD__
 /* FreeBSD floating point precision fix */
 #include <floatingpoint.h>
 #endif
@@ -320,7 +320,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
        start_memory_manager(ALS_C);
 #endif
 
-#if 0
+#ifdef __FreeBSD__
        /* FreeBSD floating point precision fix */
        fpsetmask(FP_X_IMP);
 #endif