Michael Clark | c4dceae | 2010-10-06 16:39:20 +0000 | [diff] [blame^] | 1 | |
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 */ | ||||
8 | typedef __int64 int64_t; | ||||
9 | #define PRId64 "I64d" | ||||
10 | #define SCNd64 "I64d" | ||||
11 | |||||
12 | #else | ||||
13 | |||||
14 | #ifdef HAVE_INTTYPES_H | ||||
15 | #include <inttypes.h> | ||||
16 | #endif | ||||
17 | /* inttypes.h includes stdint.h */ | ||||
18 | |||||
19 | #endif | ||||
20 | |||||
21 | #endif |