6 #ifndef JSON_CONFIG_H_INCLUDED 7 #define JSON_CONFIG_H_INCLUDED 23 #ifndef JSON_USE_EXCEPTION 24 #define JSON_USE_EXCEPTION 1 33 #include <cpptl/config.h> 34 #ifndef JSON_USE_CPPTL 35 #define JSON_USE_CPPTL 1 40 #define JSON_API CPPTL_API 41 #elif defined(JSON_DLL_BUILD) 42 #if defined(_MSC_VER) || defined(__MINGW32__) 43 #define JSON_API __declspec(dllexport) 44 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING 45 #endif // if defined(_MSC_VER) 46 #elif defined(JSON_DLL) 47 #if defined(_MSC_VER) || defined(__MINGW32__) 48 #define JSON_API __declspec(dllimport) 49 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING 50 #endif // if defined(_MSC_VER) 51 #endif // ifdef JSON_IN_CPPTL 52 #if !defined(JSON_API) 61 #if defined(_MSC_VER) // MSVC 62 # if _MSC_VER <= 1200 // MSVC 6 65 # define JSON_USE_INT64_DOUBLE_CONVERSION 1 70 # pragma warning(disable : 4786) 73 # if _MSC_VER >= 1500 // MSVC 2008 74 # define JSONCPP_DEPRECATED(message) __declspec(deprecated(message)) 78 #endif // defined(_MSC_VER) 83 #if __cplusplus >= 201103L 84 # define JSONCPP_OVERRIDE override 85 #elif defined(_MSC_VER) && _MSC_VER > 1600 86 # define JSONCPP_OVERRIDE override 88 # define JSONCPP_OVERRIDE 91 #ifndef JSON_HAS_RVALUE_REFERENCES 93 #if defined(_MSC_VER) && _MSC_VER >= 1600 // MSVC >= 2010 94 #define JSON_HAS_RVALUE_REFERENCES 1 95 #endif // MSVC >= 2010 98 #if __has_feature(cxx_rvalue_references) 99 #define JSON_HAS_RVALUE_REFERENCES 1 100 #endif // has_feature 102 #elif defined __GNUC__ // not clang (gcc comes later since clang emulates gcc) 103 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103L) 104 #define JSON_HAS_RVALUE_REFERENCES 1 105 #endif // GXX_EXPERIMENTAL 107 #endif // __clang__ || __GNUC__ 109 #endif // not defined JSON_HAS_RVALUE_REFERENCES 111 #ifndef JSON_HAS_RVALUE_REFERENCES 112 #define JSON_HAS_RVALUE_REFERENCES 0 116 #elif defined __GNUC__ // not clang (gcc comes later since clang emulates gcc) 117 # if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) 118 # define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message))) 119 # elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) 120 # define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__)) 121 # endif // GNUC version 122 #endif // __clang__ || __GNUC__ 124 #if !defined(JSONCPP_DEPRECATED) 125 #define JSONCPP_DEPRECATED(message) 126 #endif // if !defined(JSONCPP_DEPRECATED) 129 # define JSON_USE_INT64_DOUBLE_CONVERSION 1 132 #if !defined(JSON_IS_AMALGAMATION) 136 # if JSONCPP_USING_SECURE_MEMORY 140 #endif // if !defined(JSON_IS_AMALGAMATION) 145 #if defined(JSON_NO_INT64) 148 #undef JSON_HAS_INT64 149 #else // if defined(JSON_NO_INT64) 151 #if defined(_MSC_VER) // Microsoft Visual Studio 154 #else // if defined(_MSC_VER) // Other platforms, use long long 155 typedef long long int Int64;
156 typedef unsigned long long int UInt64;
157 #endif // if defined(_MSC_VER) 160 #define JSON_HAS_INT64 161 #endif // if defined(JSON_NO_INT64) 162 #if JSONCPP_USING_SECURE_MEMORY 163 #define JSONCPP_STRING std::basic_string<char, std::char_traits<char>, Json::SecureAllocator<char> > 164 #define JSONCPP_OSTRINGSTREAM std::basic_ostringstream<char, std::char_traits<char>, Json::SecureAllocator<char> > 165 #define JSONCPP_OSTREAM std::basic_ostream<char, std::char_traits<char>> 166 #define JSONCPP_ISTRINGSTREAM std::basic_istringstream<char, std::char_traits<char>, Json::SecureAllocator<char> > 167 #define JSONCPP_ISTREAM std::istream 169 #define JSONCPP_STRING std::string 170 #define JSONCPP_OSTRINGSTREAM std::ostringstream 171 #define JSONCPP_OSTREAM std::ostream 172 #define JSONCPP_ISTRINGSTREAM std::istringstream 173 #define JSONCPP_ISTREAM std::istream 174 #endif // if JSONCPP_USING_SECURE_MEMORY 177 #endif // JSON_CONFIG_H_INCLUDED
JSON (JavaScript Object Notation).