diff options
-rw-r--r-- | win32/php_inttypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/php_inttypes.h b/win32/php_inttypes.h index ead903f78e..4130649cf2 100644 --- a/win32/php_inttypes.h +++ b/win32/php_inttypes.h @@ -33,6 +33,10 @@ #error "Use this header only with Microsoft Visual C++ compilers!" #endif // _MSC_VER ] +// Starting with vc14, many of the C11 features are now included, so we only +// need many of these typedefs and defines for older VS suites +#if _MSC_VER < 1900 + #ifndef _MSC_INTTYPES_H_ // [ #define _MSC_INTTYPES_H_ @@ -303,3 +307,8 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) #endif // _MSC_INTTYPES_H_ ] + +#else +#include <inttypes.h> +#endif + |