mirror of
https://github.com/akheron/jansson.git
synced 2025-04-06 14:05:03 +00:00
Use %I64d format for printing long longs on Windows
Fixes GH-38.
This commit is contained in:
parent
32cd821273
commit
bc98ab6a69
1 changed files with 4 additions and 0 deletions
|
@ -53,7 +53,11 @@ typedef struct {
|
|||
} json_t;
|
||||
|
||||
#if JSON_INTEGER_IS_LONG_LONG
|
||||
#ifdef _WIN32
|
||||
#define JSON_INTEGER_FORMAT "I64d"
|
||||
#else
|
||||
#define JSON_INTEGER_FORMAT "lld"
|
||||
#endif
|
||||
typedef long long json_int_t;
|
||||
#else
|
||||
#define JSON_INTEGER_FORMAT "ld"
|
||||
|
|
Loading…
Add table
Reference in a new issue