2010-10-06 16:39:20 +00:00
|
|
|
|
|
|
|
|
#ifndef _json_inttypes_h_
|
|
|
|
|
#define _json_inttypes_h_
|
|
|
|
|
|
2012-02-15 20:44:54 -06:00
|
|
|
#include "json_config.h"
|
|
|
|
|
|
2013-06-23 19:12:14 -05:00
|
|
|
#if defined(_MSC_VER) && _MSC_VER <= 1700
|
2010-10-06 16:39:20 +00:00
|
|
|
|
|
|
|
|
/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
|
2012-02-01 09:27:49 +01:00
|
|
|
typedef __int32 int32_t;
|
|
|
|
|
#define INT32_MIN ((int32_t)_I32_MIN)
|
|
|
|
|
#define INT32_MAX ((int32_t)_I32_MAX)
|
2010-10-06 16:39:20 +00:00
|
|
|
typedef __int64 int64_t;
|
2012-04-23 13:11:11 +01:00
|
|
|
#define INT64_MIN ((int64_t)_I64_MIN)
|
|
|
|
|
#define INT64_MAX ((int64_t)_I64_MAX)
|
2010-10-06 16:39:20 +00:00
|
|
|
#define PRId64 "I64d"
|
|
|
|
|
#define SCNd64 "I64d"
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
2012-02-15 20:44:54 -06:00
|
|
|
#ifdef JSON_C_HAVE_INTTYPES_H
|
2010-10-06 16:39:20 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
#endif
|
|
|
|
|
/* inttypes.h includes stdint.h */
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|