MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
json_inttypes.h
Go to the documentation of this file.
1 
2 #ifndef _json_inttypes_h_
3 #define _json_inttypes_h_
4 
5 #include "json_config.h"
6 
7 #if defined(_MSC_VER) && _MSC_VER <= 1700
8 
9 /* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
10 typedef __int32 int32_t;
11 #define INT32_MIN ((int32_t)_I32_MIN)
12 #define INT32_MAX ((int32_t)_I32_MAX)
13 typedef __int64 int64_t;
14 #define INT64_MIN ((int64_t)_I64_MIN)
15 #define INT64_MAX ((int64_t)_I64_MAX)
16 #define PRId64 "I64d"
17 #define SCNd64 "I64d"
18 
19 #else
20 
21 #ifdef JSON_C_HAVE_INTTYPES_H
22 #ifndef PRId64
23 #define PRId64 "I64d"
24 #endif
25 #ifndef SCNd64
26 #define SCNd64 "I64d"
27 #endif
28 #include <stdint.h>
29 #include <inttypes.h>
30 #endif
31 /* inttypes.h includes stdint.h */
32 
33 #endif
34 
35 #endif