mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 07:14:45 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ba3fd41292 | ||
![]() |
3cde9a9912 | ||
![]() |
347e1ae46b | ||
![]() |
1335f70bbb | ||
![]() |
3eda8a63ca | ||
![]() |
0e3fffd242 |
@@ -51,6 +51,16 @@
|
|||||||
#define JSON_API
|
#define JSON_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(JSON_HAS_UNIQUE_PTR)
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
#define JSON_HAS_UNIQUE_PTR (1)
|
||||||
|
#elif _MSC_VER >= 1600
|
||||||
|
#define JSON_HAS_UNIQUE_PTR (1)
|
||||||
|
#else
|
||||||
|
#define JSON_HAS_UNIQUE_PTR (0)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
|
// If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
|
||||||
// integer
|
// integer
|
||||||
// Storages, and 64 bits integer support is disabled.
|
// Storages, and 64 bits integer support is disabled.
|
||||||
|
@@ -216,7 +216,12 @@ public:
|
|||||||
static const UInt64 maxUInt64;
|
static const UInt64 maxUInt64;
|
||||||
#endif // defined(JSON_HAS_INT64)
|
#endif // defined(JSON_HAS_INT64)
|
||||||
|
|
||||||
|
//MW: workaround for bug in NVIDIAs CUDA 7.5 nvcc compiler
|
||||||
|
#ifdef __NVCC__
|
||||||
|
public:
|
||||||
|
#else
|
||||||
private:
|
private:
|
||||||
|
#endif //__NVCC__
|
||||||
#ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
|
#ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
|
||||||
class CZString {
|
class CZString {
|
||||||
public:
|
public:
|
||||||
|
@@ -18,7 +18,9 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#if !defined(WINCE) && defined(__STDC_SECURE_LIB__) && _MSC_VER >= 1500 // VC++ 9.0 and above
|
#if !defined(WINCE) && defined(__STDC_SECURE_LIB__) && _MSC_VER >= 1500 // VC++ 9.0 and above
|
||||||
#define snprintf sprintf_s
|
#define snprintf sprintf_s
|
||||||
@@ -43,8 +45,8 @@ static int stackDepth_g = 0; // see readValue()
|
|||||||
|
|
||||||
namespace Json {
|
namespace Json {
|
||||||
|
|
||||||
#if __GNUC__ >= 6
|
#if JSON_HAS_UNIQUE_PTR
|
||||||
typedef std::scoped_ptr<CharReader> const CharReaderPtr;
|
typedef std::unique_ptr<CharReader> const CharReaderPtr;
|
||||||
#else
|
#else
|
||||||
typedef std::auto_ptr<CharReader> CharReaderPtr;
|
typedef std::auto_ptr<CharReader> CharReaderPtr;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -18,7 +18,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <cstddef> // size_t
|
#include <cstddef> // size_t
|
||||||
#include <algorithm> // min()
|
#include <algorithm> // min()
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#include <mem.h>
|
||||||
|
#endif
|
||||||
#define JSON_ASSERT_UNREACHABLE assert(false)
|
#define JSON_ASSERT_UNREACHABLE assert(false)
|
||||||
|
|
||||||
namespace Json {
|
namespace Json {
|
||||||
|
@@ -16,6 +16,9 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1800 // Between VC++ 6.0 and VC++ 11.0
|
#if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1800 // Between VC++ 6.0 and VC++ 11.0
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#define isfinite _finite
|
#define isfinite _finite
|
||||||
@@ -54,8 +57,8 @@
|
|||||||
|
|
||||||
namespace Json {
|
namespace Json {
|
||||||
|
|
||||||
#if __GNUC__ >= 6
|
#if JSON_HAS_UNIQUE_PTR
|
||||||
typedef std::scoped_ptr<StreamWriter> const StreamWriterPtr;
|
typedef std::unique_ptr<StreamWriter> const StreamWriterPtr;
|
||||||
#else
|
#else
|
||||||
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
|
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user