File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 87
87
#define JSONCPP_DEPRECATED (message )
88
88
#endif // if !defined(JSONCPP_DEPRECATED)
89
89
90
+ #include < cstdint>
90
91
namespace Json {
91
92
typedef int Int;
92
93
typedef unsigned int UInt;
@@ -99,9 +100,12 @@ typedef unsigned int LargestUInt;
99
100
#if defined(_MSC_VER) // Microsoft Visual Studio
100
101
typedef __int64 Int64;
101
102
typedef unsigned __int64 UInt64;
102
- #else // if defined(_MSC_VER) // Other platforms, use long long
103
- typedef long long int Int64;
104
- typedef unsigned long long int UInt64;
103
+ #elif __cplusplus >= 201103L // Using C++11
104
+ typedef int64_t Int64;
105
+ typedef uint64_t UInt64;
106
+ #else // Other platforms, use long long
107
+ typedef long long Int64;
108
+ typedef unsigned long long Uint64;
105
109
#endif // if defined(_MSC_VER)
106
110
typedef Int64 LargestInt;
107
111
typedef UInt64 LargestUInt;
You can’t perform that action at this time.
0 commit comments