blob: 1f3e4d2992848285a18aff058df04460c3726b8b [file] [log] [blame]
Michael Clarkc4dceae2010-10-06 16:39:20 +00001
2#ifndef _json_inttypes_h_
3#define _json_inttypes_h_
4
5#if defined(_MSC_VER) && _MSC_VER < 1600
6
7/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
John Arbash Meinel6a231e42012-02-01 09:27:49 +01008typedef __int32 int32_t;
9#define INT32_MIN ((int32_t)_I32_MIN)
10#define INT32_MAX ((int32_t)_I32_MAX)
Michael Clarkc4dceae2010-10-06 16:39:20 +000011typedef __int64 int64_t;
12#define PRId64 "I64d"
13#define SCNd64 "I64d"
14
15#else
16
17#ifdef HAVE_INTTYPES_H
18#include <inttypes.h>
19#endif
20/* inttypes.h includes stdint.h */
21
22#endif
23
24#endif