]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix missing inttypes.h definitions for Visual Studio 2010 and earliers. Related to... 23/head
authorMateusz Loskot <mateusz@loskot.net>
Mon, 23 Apr 2012 12:11:11 +0000 (13:11 +0100)
committerMateusz Loskot <mateusz@loskot.net>
Mon, 23 Apr 2012 12:11:11 +0000 (13:11 +0100)
json_inttypes.h

index b71bb098816a635f683143fa5a21b899325e3dac..2f84adec653d2213de5aa295b44c15792da22988 100644 (file)
@@ -4,13 +4,15 @@
 
 #include "json_config.h"
 
-#if defined(_MSC_VER) && _MSC_VER < 1600
+#if defined(_MSC_VER) && _MSC_VER < 1700
 
 /* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
 typedef __int32 int32_t;
 #define INT32_MIN    ((int32_t)_I32_MIN)
 #define INT32_MAX    ((int32_t)_I32_MAX)
 typedef __int64 int64_t;
+#define INT64_MIN    ((int64_t)_I64_MIN)
+#define INT64_MAX    ((int64_t)_I64_MAX)
 #define PRId64 "I64d"
 #define SCNd64 "I64d"