summaryrefslogtreecommitdiff
path: root/Zend/zend_float.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-04-25 22:44:29 +0200
committerAnatol Belski <ab@php.net>2013-04-25 22:44:29 +0200
commit30802dbc557a25f57db22ecda1c39678791a4aec (patch)
tree0dc4395d7212a45686aa0a8a0f932995d7177e84 /Zend/zend_float.h
parent7d0dd957eb3f9027153c5a7427698b4bc025f2d9 (diff)
downloadphp-git-30802dbc557a25f57db22ecda1c39678791a4aec.tar.gz
Fixed float precision change under Windows x64
otherwise we'll have asserts in debug builds and void runs of the error handlers in non debug builds.
Diffstat (limited to 'Zend/zend_float.h')
-rw-r--r--Zend/zend_float.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_float.h b/Zend/zend_float.h
index a17ad5658b..56bdb151a0 100644
--- a/Zend/zend_float.h
+++ b/Zend/zend_float.h
@@ -65,11 +65,13 @@ extern ZEND_API void zend_ensure_fpu_mode(TSRMLS_D);
MS Visual C:
- Since MSVC users tipically don't use autoconf or CMake, we will detect
- MSVC via compile time define.
+ MSVC via compile time define. Floating point precision change isn't
+ supported on 64 bit platforms, so it's NOP. See
+ http://msdn.microsoft.com/en-us/library/c9676k6h(v=vs.110).aspx
*/
/* MSVC detection (MSVC people usually don't use autoconf) */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(_WIN64)
# if _MSC_VER >= 1500
/* Visual C++ 2008 or higher, supports _controlfp_s */
# define HAVE__CONTROLFP_S