|
Version: 0.6.0
|
12 #ifndef _WX_JSON_DEFS_H_
13 #define _WX_JSON_DEFS_H_
19 #define wxJSON_MAJOR 1
20 #define wxJSON_MINOR 2
21 #define wxJSON_RELEASE 1
26 #define wxCHECK_JSON_VERSION(major,minor,release) \
27 (wxJSON_MAJOR > (major) || \
28 (wxJSON_MAJOR == (major) && wxJSON_MINOR > (minor)) || \
29 (wxJSON_MAJOR == (major) && wxJSON_MINOR == (minor) && wxJSON_RELEASE >= (release)))
46 #ifdef WXMAKINGDLL_JSON
47 #define WXDLLIMPEXP_JSON WXEXPORT
48 #define WXDLLIMPEXP_DATA_JSON(type) WXEXPORT type
49 #elif defined(WXUSINGDLL)
50 #define WXDLLIMPEXP_JSON WXIMPORT
51 #define WXDLLIMPEXP_DATA_JSON(type) WXIMPORT type
52 #else // not making nor using DLL
53 #define WXDLLIMPEXP_JSON
54 #define WXDLLIMPEXP_DATA_JSON(type) type
60 #if !defined( __GNUC__ )
61 #define __PRETTY_FUNCTION__ __WXFUNCTION__
68 #if defined( wxJSON_USE_UNICODE )
69 #undef wxJSON_USE_UNICODE
72 #if wxUSE_UNICODE == 1
73 #define wxJSON_USE_UNICODE
92 #if defined( wxLongLong_t )
93 #define wxJSON_64BIT_INT
104 #if defined( wxJSON_NO_64BIT_INT ) && defined( wxJSON_64BIT_INT )
105 #undef wxJSON_64BIT_INT
116 #if !defined( LLONG_MAX )
117 #define LLONG_MAX 9223372036854775807
120 #if !defined( ULLONG_MAX )
121 #define ULLONG_MAX 18446744073709551615
124 #if !defined( LLONG_MIN )
125 #define LLONG_MIN -9223372036854775808
131 #if !defined( INT_MIN )
132 #define INT_MIN -32768
134 #if !defined( INT_MAX )
135 #define INT_MAX 32767
137 #if !defined( UINT_MAX )
138 #define UINT_MAX 65535
140 #if !defined( LONG_MIN )
141 #define LONG_MIN -2147483648
143 #if !defined( LONG_MAX )
144 #define LONG_MAX 2147483647
146 #if !defined( ULONG_MAX )
147 #define ULONG_MAX 4294967295
149 #if !defined( SHORT_MAX )
150 #define SHORT_MAX 32767
152 #if !defined( SHORT_MIN )
153 #define SHORT_MIN -32768
155 #if !defined( USHORT_MAX )
156 #define USHORT_MAX 65535
164 #define wxJSON_NOABORT_ASSERT
165 #if defined( wxJSON_NOABORT_ASSERT )
166 #define wxJSON_ASSERT( cond )
168 #define wxJSON_ASSERT( cond ) wxASSERT( cond );
175 #define wxJSONWRITER_LAST_COL 50
176 #define wxJSONWRITER_SPLIT_COL 75
177 #define wxJSONWRITER_MIN_LENGTH 15
178 #define wxJSONWRITER_TAB_LENGTH 4
186 #if !defined(snprintf) && defined(_MSC_VER)
187 #define snprintf _snprintf
195 #undef wxJSON_USE_STL
196 #if defined( wxUSE_STL ) && wxUSE_STL == 1
197 #define wxJSON_USE_STL
200 #endif // _WX_JSON_DEFS_H_