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