Skip to content

Commit 8409dc0

Browse files
committed
Fix missing inttypes.h definitions for Visual Studio 2010 and earliers. Related to issue json-c#22.
1 parent 178a4b0 commit 8409dc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

json_inttypes.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
#include "json_config.h"
66

7-
#if defined(_MSC_VER) && _MSC_VER < 1600
7+
#if defined(_MSC_VER) && _MSC_VER < 1700
88

99
/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
1010
typedef __int32 int32_t;
1111
#define INT32_MIN ((int32_t)_I32_MIN)
1212
#define INT32_MAX ((int32_t)_I32_MAX)
1313
typedef __int64 int64_t;
14+
#define INT64_MIN ((int64_t)_I64_MIN)
15+
#define INT64_MAX ((int64_t)_I64_MAX)
1416
#define PRId64 "I64d"
1517
#define SCNd64 "I64d"
1618

0 commit comments

Comments
 (0)