rather use the supplied inttypes.h with vc14

This commit is contained in:
Anatol Belski 2015-10-23 09:47:00 +02:00
parent 5ba763413b
commit 448d1ce428

View File

@ -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