From: Nikita Popov Date: Fri, 24 Nov 2017 18:02:59 +0000 (+0100) Subject: Fix C++ build failure due to format macros X-Git-Tag: php-7.3.0alpha1~958 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9215be76a6e287076c4727a5f1727086e77d67ce;p=php Fix C++ build failure due to format macros PRIi64 etc. may not be available without this macro definition, on pre-C++11 compilers. At least I think that's the issue. --- diff --git a/main/php_stdint.h b/main/php_stdint.h index f525b7339e..9fbff4a509 100644 --- a/main/php_stdint.h +++ b/main/php_stdint.h @@ -36,6 +36,9 @@ # ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS # endif +# ifndef __STDC_FORMAT_MACROS +# define __STDC_FORMAT_MACROS +# endif #endif #if defined(_MSC_VER)