Go to the documentation of this file.
6 #ifndef JSON_CONFIG_H_INCLUDED
7 #define JSON_CONFIG_H_INCLUDED
32 #ifndef JSON_USE_EXCEPTION
33 #define JSON_USE_EXCEPTION 1
42 #include <cpptl/config.h>
43 #ifndef JSON_USE_CPPTL
44 #define JSON_USE_CPPTL 1
49 #define JSON_API CPPTL_API
50 #elif defined(JSON_DLL_BUILD)
52 #define JSON_API __declspec(dllexport)
53 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
54 #endif // if defined(_MSC_VER)
55 #elif defined(JSON_DLL)
57 #define JSON_API __declspec(dllimport)
58 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
59 #endif // if defined(_MSC_VER)
60 #endif // ifdef JSON_IN_CPPTL
61 #if !defined(JSON_API)
70 #if defined(_MSC_VER) && _MSC_VER <= 1200 // MSVC 6
73 #define JSON_USE_INT64_DOUBLE_CONVERSION 1
78 #pragma warning(disable : 4786)
79 #endif // if defined(_MSC_VER) && _MSC_VER < 1200 // MSVC 6
81 #if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
82 #define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
86 #if !defined(JSONCPP_DEPRECATED)
87 #define JSONCPP_DEPRECATED(message)
88 #endif // if !defined(JSONCPP_DEPRECATED)
93 #if defined(JSON_NO_INT64)
97 #else // if defined(JSON_NO_INT64)
99 #if defined(_MSC_VER) // Microsoft Visual Studio
102 #else // if defined(_MSC_VER) // Other platforms, use long long
103 typedef long long int Int64;
104 typedef unsigned long long int UInt64;
105 #endif // if defined(_MSC_VER)
108 #define JSON_HAS_INT64
109 #endif // if defined(JSON_NO_INT64)
112 #endif // JSON_CONFIG_H_INCLUDED