2010-10-06 16:39:20 +00:00
|
|
|
|
2017-12-06 00:20:59 -05:00
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
* @brief Do not use, json-c internal, may be changed or removed at any time.
|
|
|
|
|
*/
|
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"
|
|
|
|
|
|
2015-02-05 15:58:12 +00:00
|
|
|
#ifdef JSON_C_HAVE_INTTYPES_H
|
|
|
|
|
/* inttypes.h includes stdint.h */
|
|
|
|
|
#include <inttypes.h>
|
2010-10-06 16:39:20 +00:00
|
|
|
|
|
|
|
|
#else
|
2023-08-05 22:11:30 -04:00
|
|
|
#ifdef JSON_C_HAVE_STDINT_H
|
2015-02-05 15:58:12 +00:00
|
|
|
#include <stdint.h>
|
2023-08-05 22:11:30 -04:00
|
|
|
#else
|
|
|
|
|
/* Really only valid for old MS compilers, VS2008 and earlier: */
|
|
|
|
|
typedef __int32 int32_t;
|
|
|
|
|
typedef unsigned __int32 uint32_t;
|
|
|
|
|
typedef __int64 int64_t;
|
|
|
|
|
typedef unsigned __int64 uint64_t;
|
|
|
|
|
#endif
|
2010-10-06 16:39:20 +00:00
|
|
|
|
2015-02-05 15:58:12 +00:00
|
|
|
#define PRId64 "I64d"
|
|
|
|
|
#define SCNd64 "I64d"
|
2020-02-20 15:17:05 +08:00
|
|
|
#define PRIu64 "I64u"
|
2010-10-06 16:39:20 +00:00
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-01-09 23:51:43 +01:00
|
|
|
#if defined(_MSC_VER) && !defined(ssize_t)
|
2022-08-13 21:45:11 -07:00
|
|
|
#include <BaseTsd.h>
|
|
|
|
|
typedef SSIZE_T ssize_t;
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-10-06 16:39:20 +00:00
|
|
|
#endif
|