mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 15:05:34 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6edfae4890 | ||
![]() |
de95c1115a | ||
![]() |
ba3fd41292 | ||
![]() |
3cde9a9912 | ||
![]() |
347e1ae46b | ||
![]() |
1335f70bbb | ||
![]() |
3eda8a63ca | ||
![]() |
0e3fffd242 |
@@ -65,7 +65,7 @@ ENDMACRO()
|
||||
#SET( JSONCPP_VERSION_MAJOR X )
|
||||
#SET( JSONCPP_VERSION_MINOR Y )
|
||||
#SET( JSONCPP_VERSION_PATCH Z )
|
||||
SET( JSONCPP_VERSION 0.10.6 )
|
||||
SET( JSONCPP_VERSION 0.10.7 )
|
||||
jsoncpp_parse_version( ${JSONCPP_VERSION} JSONCPP_VERSION )
|
||||
#IF(NOT JSONCPP_VERSION_FOUND)
|
||||
# MESSAGE(FATAL_ERROR "Failed to parse version string properly. Expect X.Y.Z")
|
||||
|
@@ -51,6 +51,16 @@
|
||||
#define JSON_API
|
||||
#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
|
||||
// integer
|
||||
// Storages, and 64 bits integer support is disabled.
|
||||
|
@@ -216,7 +216,12 @@ public:
|
||||
static const UInt64 maxUInt64;
|
||||
#endif // defined(JSON_HAS_INT64)
|
||||
|
||||
//MW: workaround for bug in NVIDIAs CUDA 7.5 nvcc compiler
|
||||
#ifdef __NVCC__
|
||||
public:
|
||||
#else
|
||||
private:
|
||||
#endif //__NVCC__
|
||||
#ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
|
||||
class CZString {
|
||||
public:
|
||||
|
@@ -3,10 +3,10 @@
|
||||
#ifndef JSON_VERSION_H_INCLUDED
|
||||
# define JSON_VERSION_H_INCLUDED
|
||||
|
||||
# define JSONCPP_VERSION_STRING "0.10.6"
|
||||
# define JSONCPP_VERSION_STRING "0.10.7"
|
||||
# define JSONCPP_VERSION_MAJOR 0
|
||||
# define JSONCPP_VERSION_MINOR 10
|
||||
# define JSONCPP_VERSION_PATCH 6
|
||||
# define JSONCPP_VERSION_PATCH 7
|
||||
# define JSONCPP_VERSION_QUALIFIER
|
||||
# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
|
||||
|
||||
|
@@ -18,7 +18,9 @@
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <limits>
|
||||
|
||||
#if defined(__BORLANDC__)
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(WINCE) && defined(__STDC_SECURE_LIB__) && _MSC_VER >= 1500 // VC++ 9.0 and above
|
||||
#define snprintf sprintf_s
|
||||
@@ -43,8 +45,8 @@ static int stackDepth_g = 0; // see readValue()
|
||||
|
||||
namespace Json {
|
||||
|
||||
#if __GNUC__ >= 6
|
||||
typedef std::scoped_ptr<CharReader> const CharReaderPtr;
|
||||
#if JSON_HAS_UNIQUE_PTR
|
||||
typedef std::unique_ptr<CharReader> const CharReaderPtr;
|
||||
#else
|
||||
typedef std::auto_ptr<CharReader> CharReaderPtr;
|
||||
#endif
|
||||
|
@@ -18,7 +18,9 @@
|
||||
#endif
|
||||
#include <cstddef> // size_t
|
||||
#include <algorithm> // min()
|
||||
|
||||
#if defined(__BORLANDC__)
|
||||
#include <mem.h>
|
||||
#endif
|
||||
#define JSON_ASSERT_UNREACHABLE assert(false)
|
||||
|
||||
namespace Json {
|
||||
|
@@ -16,6 +16,9 @@
|
||||
#include <cstring>
|
||||
#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
|
||||
#include <float.h>
|
||||
#define isfinite _finite
|
||||
@@ -54,8 +57,8 @@
|
||||
|
||||
namespace Json {
|
||||
|
||||
#if __GNUC__ >= 6
|
||||
typedef std::scoped_ptr<StreamWriter> const StreamWriterPtr;
|
||||
#if JSON_HAS_UNIQUE_PTR
|
||||
typedef std::unique_ptr<StreamWriter> const StreamWriterPtr;
|
||||
#else
|
||||
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user