Skip to content

Commit 9215be7

Browse files
committed
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.
1 parent 287a2b0 commit 9215be7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/php_stdint.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
# ifndef __STDC_CONSTANT_MACROS
3737
# define __STDC_CONSTANT_MACROS
3838
# endif
39+
# ifndef __STDC_FORMAT_MACROS
40+
# define __STDC_FORMAT_MACROS
41+
# endif
3942
#endif
4043

4144
#if defined(_MSC_VER)

0 commit comments

Comments
 (0)