6#ifndef NIM_CPP_WRAPPER_UTIL_JSON_CONFIG_H_INCLUDED
7#define NIM_CPP_WRAPPER_UTIL_JSON_CONFIG_H_INCLUDED
19#ifndef JSON_USE_EXCEPTION
20#define JSON_USE_EXCEPTION 1
24#ifndef JSON_USE_NULLREF
25#define JSON_USE_NULLREF 1
34#if defined(JSON_DLL_BUILD)
35#if defined(_MSC_VER) || defined(__MINGW32__)
36#define JSON_API __declspec(dllexport)
37#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
38#elif defined(__GNUC__) || defined(__clang__)
39#define JSON_API __attribute__((visibility("default")))
42#elif defined(JSON_DLL)
43#if defined(_MSC_VER) || defined(__MINGW32__)
44#define JSON_API __declspec(dllimport)
45#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
53#if defined(_MSC_VER) && _MSC_VER < 1800
54#error "ERROR: Visual Studio 12 (2013) with _MSC_VER=1800 is the oldest supported compiler with sufficient C++11 capabilities"
57#if defined(_MSC_VER) && _MSC_VER < 1900
60extern JSON_API int msvc_pre1900_c99_snprintf(
char* outBuf,
size_t size,
const char* format, ...);
61#define jsoncpp_snprintf msvc_pre1900_c99_snprintf
63#define jsoncpp_snprintf std::snprintf
73#define JSONCPP_OVERRIDE override
75#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 6))
76#define JSON_USE_INT64_DOUBLE_CONVERSION 1
79#if !defined(JSON_IS_AMALGAMATION)
82#define JSONCPP_USING_SECURE_MEMORY 0
90#if defined(JSON_NO_INT64)
98using UInt64 =
unsigned __int64;
105#define JSON_HAS_INT64
109using Allocator =
typename std::conditional<JSONCPP_USING_SECURE_MEMORY, SecureAllocator<T>, std::allocator<T>>::type;
111using IStringStream = std::basic_istringstream<String::value_type, String::traits_type, String::allocator_type>;
112using OStringStream = std::basic_ostringstream<String::value_type, String::traits_type, String::allocator_type>;
#define JSON_API
Definition: config.h:50
nim_cpp_wrapper_util::Json::IStringStream JSONCPP_ISTRINGSTREAM
Definition: config.h:120
nim_cpp_wrapper_util::Json::IStream JSONCPP_ISTREAM
Definition: config.h:122
nim_cpp_wrapper_util::Json::OStream JSONCPP_OSTREAM
Definition: config.h:123
nim_cpp_wrapper_util::Json::String JSONCPP_STRING
Definition: config.h:119
nim_cpp_wrapper_util::Json::OStringStream JSONCPP_OSTRINGSTREAM
Definition: config.h:121
std::basic_ostringstream< String::value_type, String::traits_type, String::allocator_type > OStringStream
Definition: config.h:112
UInt64 LargestUInt
Definition: config.h:104
uint64_t UInt64
Definition: config.h:101
unsigned int UInt
Definition: config.h:89
std::istream IStream
Definition: config.h:113
std::basic_istringstream< String::value_type, String::traits_type, String::allocator_type > IStringStream
Definition: config.h:111
int Int
Definition: config.h:88
std::ostream OStream
Definition: config.h:114
Int64 LargestInt
Definition: config.h:103
int64_t Int64
Definition: config.h:100
std::basic_string< char, std::char_traits< char >, Allocator< char > > String
Definition: config.h:110
typename std::conditional< JSONCPP_USING_SECURE_MEMORY, SecureAllocator< T >, std::allocator< T > >::type Allocator
Definition: config.h:109
JSON (JavaScript Object Notation).
Definition: allocator.h:14