From: Anatol Belski Date: Fri, 21 Jul 2017 07:12:06 +0000 (+0200) Subject: Move the define into the header to reduce diff for future upgrade X-Git-Tag: php-7.0.23RC1~55^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b3c26d4f46e7bc1c58e724d486e8ae4386c3202;p=php Move the define into the header to reduce diff for future upgrade --- 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