mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
ensure JSON_int_t is an int64_t
This commit is contained in:
parent
6cce27bf54
commit
6779afac43
1 changed files with 4 additions and 10 deletions
|
@ -17,16 +17,10 @@
|
||||||
# define JSON_PARSER_DLL_API
|
# define JSON_PARSER_DLL_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Determine the integer type use to parse non-floating point numbers */
|
#include <inttypes.h>
|
||||||
#if __STDC_VERSION__ >= 199901L || HAVE_LONG_LONG == 1
|
typedef int64_t JSON_int_t;
|
||||||
typedef long long JSON_int_t;
|
#define JSON_PARSER_INTEGER_SSCANF_TOKEN "%"PRId64
|
||||||
#define JSON_PARSER_INTEGER_SSCANF_TOKEN "%lld"
|
#define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%"PRId64
|
||||||
#define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%lld"
|
|
||||||
#else
|
|
||||||
typedef long JSON_int_t;
|
|
||||||
#define JSON_PARSER_INTEGER_SSCANF_TOKEN "%ld"
|
|
||||||
#define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%ld"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in a new issue