]> granicus.if.org Git - php/commitdiff
Fix C++ build failure due to format macros
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Nov 2017 18:02:59 +0000 (19:02 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Nov 2017 18:02:59 +0000 (19:02 +0100)
PRIi64 etc. may not be available without this macro definition, on
pre-C++11 compilers. At least I think that's the issue.

main/php_stdint.h

index f525b7339e568cd732b4539c1fa8ef438cd5242d..9fbff4a50937ab66b9ab733612c86f4d3303482b 100644 (file)
@@ -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)