6 #ifndef JSON_CONFIG_H_INCLUDED
7 #define JSON_CONFIG_H_INCLUDED
21 #ifndef JSON_USE_EXCEPTION
22 #define JSON_USE_EXCEPTION 1
31 #include <cpptl/config.h>
32 #ifndef JSON_USE_CPPTL
33 #define JSON_USE_CPPTL 1
38 #define JSON_API CPPTL_API
39 #elif defined(JSON_DLL_BUILD)
41 #define JSON_API __declspec(dllexport)
42 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
43 #endif // if defined(_MSC_VER)
44 #elif defined(JSON_DLL)
46 #define JSON_API __declspec(dllimport)
47 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
48 #endif // if defined(_MSC_VER)
49 #endif // ifdef JSON_IN_CPPTL
50 #if !defined(JSON_API)
59 #if defined(_MSC_VER) && _MSC_VER <= 1200 // MSVC 6
62 #define JSON_USE_INT64_DOUBLE_CONVERSION 1
67 #pragma warning(disable : 4786)
68 #endif // if defined(_MSC_VER) && _MSC_VER < 1200 // MSVC 6
70 #if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
71 #define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
73 #elif defined(__clang__) && defined(__has_feature)
74 #if __has_feature(attribute_deprecated_with_message)
75 #define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
77 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
78 #define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
79 #elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
80 #define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__))
83 #if !defined(JSONCPP_DEPRECATED)
84 #define JSONCPP_DEPRECATED(message)
85 #endif // if !defined(JSONCPP_DEPRECATED)
90 #if defined(JSON_NO_INT64)
94 #else // if defined(JSON_NO_INT64)
96 #if defined(_MSC_VER) // Microsoft Visual Studio
99 #else // if defined(_MSC_VER) // Other platforms, use long long
100 typedef long long int Int64;
101 typedef unsigned long long int UInt64;
102 #endif // if defined(_MSC_VER)
105 #define JSON_HAS_INT64
106 #endif // if defined(JSON_NO_INT64)
109 #endif // JSON_CONFIG_H_INCLUDED
JSON (JavaScript Object Notation).