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