From 527fb326769e40ab20b386c2b59454ba8413f8ee Mon Sep 17 00:00:00 2001 From: Hajime Yoshimori Date: Mon, 5 Oct 2015 10:42:03 +0900 Subject: [PATCH] Fix build under MSVC18.0 (2012) - stdint.h (which defines uint16_t and uint32_t) is bundled with the versions starting from MSVC14.0 (2010) --- src/endianhelper.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/endianhelper.h b/src/endianhelper.h index 25704f1..37139c6 100644 --- a/src/endianhelper.h +++ b/src/endianhelper.h @@ -19,6 +19,10 @@ #define MSGPACK_SYSDEP_H__ #include +#if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1600 +#include +#endif + #ifndef _WIN32 #include /* __BYTE_ORDER */ #endif