summaryrefslogtreecommitdiff
path: root/main/php_stdint.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-11-24 19:02:59 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-11-24 19:02:59 +0100
commit9215be76a6e287076c4727a5f1727086e77d67ce (patch)
tree45299a49baa8fc1426ee9b021f9ea70b2c3a74d1 /main/php_stdint.h
parent287a2b018402d814fb8b3ee7dd6192491c3adb22 (diff)
downloadphp-git-9215be76a6e287076c4727a5f1727086e77d67ce.tar.gz
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.
Diffstat (limited to 'main/php_stdint.h')
-rw-r--r--main/php_stdint.h3
1 files changed, 3 insertions, 0 deletions
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)