summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-21 09:12:06 +0200
committerAnatol Belski <ab@php.net>2017-07-21 09:12:06 +0200
commit9b3c26d4f46e7bc1c58e724d486e8ae4386c3202 (patch)
tree81f4792af94a86fa715ebd4cde0c6618493a2958 /Zend
parent95d2908814585bd9c3c9a1eab4989bc551b6cc73 (diff)
downloadphp-git-9b3c26d4f46e7bc1c58e724d486e8ae4386c3202.tar.gz
Move the define into the header to reduce diff for future upgrade
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_strtod.c2
-rw-r--r--Zend/zend_strtod_int.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c
index 9e4ff738b9..d15048b7e5 100644
--- a/Zend/zend_strtod.c
+++ b/Zend/zend_strtod.c
@@ -206,8 +206,6 @@ static void Bug(const char *message) {
#include "stdlib.h"
#include "string.h"
-#define NO_ERRNO
-
#ifdef USE_LOCALE
#include "locale.h"
#endif
diff --git a/Zend/zend_strtod_int.h b/Zend/zend_strtod_int.h
index 4b4cfa3904..d71bb5fcf9 100644
--- a/Zend/zend_strtod_int.h
+++ b/Zend/zend_strtod_int.h
@@ -72,6 +72,10 @@ typedef unsigned long int uint32_t;
#define NO_INFNAN_CHECK
#endif
+#ifndef NO_ERRNO
+#define NO_ERRNO
+#endif
+
#ifdef WORDS_BIGENDIAN
#define IEEE_BIG_ENDIAN 1
#else