]> granicus.if.org Git - php/commitdiff
Move the define into the header to reduce diff for future upgrade
authorAnatol Belski <ab@php.net>
Fri, 21 Jul 2017 07:12:06 +0000 (09:12 +0200)
committerAnatol Belski <ab@php.net>
Fri, 21 Jul 2017 07:12:06 +0000 (09:12 +0200)
Zend/zend_strtod.c
Zend/zend_strtod_int.h

index 9e4ff738b9561094aa7fa373997020a84bd4bfeb..d15048b7e59ebdae4ee82b22bbad4beb1f75c715 100644 (file)
@@ -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
index 4b4cfa39040090dd45b97d6b8174db8c571db1a2..d71bb5fcf93f87710c023499820a70d437ea1562 100644 (file)
@@ -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