projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use %I64d format for printing long longs on Windows
[jansson.git]
/
src
/
jansson.h
diff --git
a/src/jansson.h
b/src/jansson.h
index
55c03d7
..
405c840
100644
(file)
--- a/
src/jansson.h
+++ b/
src/jansson.h
@@
-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"