summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-11 18:07:14 +0000
committerAndi Gutmans <andi@php.net>2000-06-11 18:07:14 +0000
commit1f5ee72e2dca2834653060896ef40883c02b9af1 (patch)
tree52d409f73465de789b603cb0331ce553e8904546
parent5928970d2289d2c0a5d4d04d645c24580bcc0e45 (diff)
downloadphp-git-1f5ee72e2dca2834653060896ef40883c02b9af1.tar.gz
- Solve floating point precision crash on FreeBSD.
-rw-r--r--Zend/zend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index ac64615037..a319473104 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -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