rt300@0: #ifndef JSON_CONFIG_H_INCLUDED rt300@0: # define JSON_CONFIG_H_INCLUDED rt300@0: rt300@0: /// If defined, indicates that json library is embedded in CppTL library. rt300@0: //# define JSON_IN_CPPTL 1 rt300@0: rt300@0: /// If defined, indicates that json may leverage CppTL library rt300@0: //# define JSON_USE_CPPTL 1 rt300@0: /// If defined, indicates that cpptl vector based map should be used instead of std::map rt300@0: /// as Value container. rt300@0: //# define JSON_USE_CPPTL_SMALLMAP 1 rt300@0: /// If defined, indicates that Json specific container should be used rt300@0: /// (hash table & simple deque container with customizable allocator). rt300@0: /// THIS FEATURE IS STILL EXPERIMENTAL! rt300@0: //# define JSON_VALUE_USE_INTERNAL_MAP 1 rt300@0: /// Force usage of standard new/malloc based allocator instead of memory pool based allocator. rt300@0: /// The memory pools allocator used optimization (initializing Value and ValueInternalLink rt300@0: /// as if it was a POD) that may cause some validation tool to report errors. rt300@0: /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined. rt300@0: //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1 rt300@0: rt300@0: /// If defined, indicates that Json use exception to report invalid type manipulation rt300@0: /// instead of C assert macro. rt300@0: # define JSON_USE_EXCEPTION 1 rt300@0: rt300@0: # ifdef JSON_IN_CPPTL rt300@0: # include rt300@0: # ifndef JSON_USE_CPPTL rt300@0: # define JSON_USE_CPPTL 1 rt300@0: # endif rt300@0: # endif rt300@0: rt300@0: # ifdef JSON_IN_CPPTL rt300@0: # define JSON_API CPPTL_API rt300@0: # elif defined(JSON_DLL_BUILD) rt300@0: # define JSON_API __declspec(dllexport) rt300@0: # elif defined(JSON_DLL) rt300@0: # define JSON_API __declspec(dllimport) rt300@0: # else rt300@0: # define JSON_API rt300@0: # endif rt300@0: rt300@0: #endif // JSON_CONFIG_H_INCLUDED