Include stdint.h instead of inttypes.h when compiled with MSVC < 2013

This commit is contained in:
Tatsuhiro Tsujikawa 2015-05-20 22:33:57 +09:00
parent 3a4c8bc8f1
commit 1ddff5bbf9
1 changed files with 7 additions and 0 deletions

View File

@ -36,7 +36,14 @@ extern "C" {
#endif
#include <stdlib.h>
#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 <stdint.h>
#else /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */
#include <inttypes.h>
#endif /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */
#include <sys/types.h>
#include <nghttp2/nghttp2ver.h>