From 320eff1c217eb46a2859d62a1f4c24a6d65d46b3 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Mon, 8 Dec 2014 21:53:29 +0800 Subject: [PATCH] Fix #207 VC2013 imaxdiv_t redefinition --- include/rapidjson/msinttypes/inttypes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/rapidjson/msinttypes/inttypes.h b/include/rapidjson/msinttypes/inttypes.h index ac7e32b..af713c9 100644 --- a/include/rapidjson/msinttypes/inttypes.h +++ b/include/rapidjson/msinttypes/inttypes.h @@ -43,6 +43,11 @@ #include "stdint.h" +// miloyip: VC supports inttypes.h since VC2013 +#if _MSC_VER >= 1800 +#include +#else + // 7.8 Format conversion of integer types typedef struct { @@ -302,5 +307,6 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) #define wcstoimax _wcstoi64 #define wcstoumax _wcstoui64 +#endif // _MSC_VER >= 1800 #endif // _MSC_INTTYPES_H_ ]