diff options
author | John Arbash Meinel <john@arbash-meinel.com> | 2012-02-01 09:27:49 +0100 |
---|---|---|
committer | John Arbash Meinel <john@arbash-meinel.com> | 2012-02-01 09:27:49 +0100 |
commit | 6a231e4b414bc0fde02b4b6a66929302bd8ce6f6 (patch) | |
tree | 99b9f85f6d56bc007e534e86865a1780fc0db09a /json_inttypes.h | |
parent | faa535386a0c0a984caa4cc522d0cf70c97bc68f (diff) | |
download | json-c-6a231e4b414bc0fde02b4b6a66929302bd8ce6f6.tar.gz |
Some updates to make the code compatible with VC 9 (2008)
VC 9 doesn't support late variable declarations, and doesn't have inttypes
so we need some direct definitions of a couple of more types.
Diffstat (limited to 'json_inttypes.h')
-rw-r--r-- | json_inttypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/json_inttypes.h b/json_inttypes.h index 1cbafc2..1f3e4d2 100644 --- a/json_inttypes.h +++ b/json_inttypes.h @@ -5,6 +5,9 @@ #if defined(_MSC_VER) && _MSC_VER < 1600 /* 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 PRId64 "I64d" #define SCNd64 "I64d" |