summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_float.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_float.h b/Zend/zend_float.h
index 3cdb242263..86fa7fb54a 100644
--- a/Zend/zend_float.h
+++ b/Zend/zend_float.h
@@ -78,7 +78,9 @@ extern ZEND_API void zend_ensure_fpu_mode(TSRMLS_D);
# define HAVE__CONTROLFP
# endif /* MSC_VER >= 1500 */
/* Tell MSVC optimizer that we access FP environment */
-# pragma fenv_access (on)
+# if _MSC_VER >= 1500
+# pragma fenv_access (on)
+# endif
#endif /* _MSC_VER */
#ifdef HAVE__CONTROLFP_S