From 1ddff5bbf91ba0d1713eabfe242170d9adb5f356 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 20 May 2015 22:33:57 +0900 Subject: [PATCH] Include stdint.h instead of inttypes.h when compiled with MSVC < 2013 --- lib/includes/nghttp2/nghttp2.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index f7e6052d..b1028a86 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -36,7 +36,14 @@ extern "C" { #endif #include +#if defined(_MSC_VER) && (_MSC_VER < 1800) +/* MSVC < 2013 does not have inttypes.h because it is not C99 + compliant. See compiler macros and version number in + https://sourceforge.net/p/predef/wiki/Compilers/ */ +#include +#else /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */ #include +#endif /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */ #include #include