mirror of
https://github.com/json-c/json-c.git
synced 2026-11-08 22:50:47 +08:00
PR #679: add workaround for old compilers w/o stdint.h (i.e. VS2008 and earlier)
This commit is contained in:
1 parent
0bcfb6bc84
commit
1ee12100b6
3 files changed
+18
-4
No files matched your search
@@ -13,7 +13,15 @@
|
||||
#include <inttypes.h>
|
||||
|
||||
#else
|
||||
#ifdef JSON_C_HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#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
|
||||
|
||||
#define PRId64 "I64d"
|
||||
#define SCNd64 "I64d"
|
||||
|
||||
Reference in new issue
Block a user