com php-src: Fix C++ build failure due to format macros: main/php_stdint.h
| From: | Nikita Popov | Date: | Fri, 24 Nov 2017 18:02:59 +0000 |
| Subject: | com php-src: Fix C++ build failure due to format macros: main/php_stdint.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100363@lists.php.net to get a copy of this message | ||
Commit: 9215be76a6e287076c4727a5f1727086e77d67ce
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 24 Nov 2017 19:02:59 +0100
Parents: 287a2b018402d814fb8b3ee7dd6192491c3adb22
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9215be76a6e287076c4727a5f1727086e77d67ce
Log:
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.
Changed paths:
M main/php_stdint.h
Diff:
diff --git a/main/php_stdint.h b/main/php_stdint.h
index f525b73..9fbff4a 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)