From d8a3f1404382b338571624794254c606d0ef3e99 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 4 Jun 2018 22:12:57 +0200 Subject: added local win32 fork of json-c here --- src/3rdParty/json-c/json_inttypes.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/3rdParty/json-c/json_inttypes.h (limited to 'src/3rdParty/json-c/json_inttypes.h') diff --git a/src/3rdParty/json-c/json_inttypes.h b/src/3rdParty/json-c/json_inttypes.h new file mode 100644 index 0000000..102467e --- /dev/null +++ b/src/3rdParty/json-c/json_inttypes.h @@ -0,0 +1,37 @@ + +#ifndef _json_inttypes_h_ +#define _json_inttypes_h_ + +#include "json_config.h" + +#if defined(_MSC_VER) && _MSC_VER <= 1700 + +#if defined(_MSC_VER) && _MSC_VER >= 1600 +#include +#endif + +/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */ +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; +#if (!defined(__cplusplus)) +#define INT32_MIN ((int32_t)_I32_MIN) +#define INT32_MAX ((int32_t)_I32_MAX) +#endif +typedef __int64 int64_t; +#if (!defined(__cplusplus)) +#define INT64_MIN ((int64_t)_I64_MIN) +#define INT64_MAX ((int64_t)_I64_MAX) +#endif +#define PRId64 "I64d" +#define SCNd64 "I64d" + +#else + +#ifdef JSON_C_HAVE_INTTYPES_H +#include +#endif +/* inttypes.h includes stdint.h */ + +#endif + +#endif -- cgit v1.2.3-54-g00ecf