annotate json/config.h @ 52:89944ab3e129 tip

fix oF linker errors ios8
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 03 Feb 2015 13:18:23 +0000
parents a223551fdc1f
children
rev   line source
rt300@0 1 #ifndef JSON_CONFIG_H_INCLUDED
rt300@0 2 # define JSON_CONFIG_H_INCLUDED
rt300@0 3
rt300@0 4 /// If defined, indicates that json library is embedded in CppTL library.
rt300@0 5 //# define JSON_IN_CPPTL 1
rt300@0 6
rt300@0 7 /// If defined, indicates that json may leverage CppTL library
rt300@0 8 //# define JSON_USE_CPPTL 1
rt300@0 9 /// If defined, indicates that cpptl vector based map should be used instead of std::map
rt300@0 10 /// as Value container.
rt300@0 11 //# define JSON_USE_CPPTL_SMALLMAP 1
rt300@0 12 /// If defined, indicates that Json specific container should be used
rt300@0 13 /// (hash table & simple deque container with customizable allocator).
rt300@0 14 /// THIS FEATURE IS STILL EXPERIMENTAL!
rt300@0 15 //# define JSON_VALUE_USE_INTERNAL_MAP 1
rt300@0 16 /// Force usage of standard new/malloc based allocator instead of memory pool based allocator.
rt300@0 17 /// The memory pools allocator used optimization (initializing Value and ValueInternalLink
rt300@0 18 /// as if it was a POD) that may cause some validation tool to report errors.
rt300@0 19 /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined.
rt300@0 20 //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1
rt300@0 21
rt300@0 22 /// If defined, indicates that Json use exception to report invalid type manipulation
rt300@0 23 /// instead of C assert macro.
rt300@0 24 # define JSON_USE_EXCEPTION 1
rt300@0 25
rt300@0 26 # ifdef JSON_IN_CPPTL
rt300@0 27 # include <cpptl/config.h>
rt300@0 28 # ifndef JSON_USE_CPPTL
rt300@0 29 # define JSON_USE_CPPTL 1
rt300@0 30 # endif
rt300@0 31 # endif
rt300@0 32
rt300@0 33 # ifdef JSON_IN_CPPTL
rt300@0 34 # define JSON_API CPPTL_API
rt300@0 35 # elif defined(JSON_DLL_BUILD)
rt300@0 36 # define JSON_API __declspec(dllexport)
rt300@0 37 # elif defined(JSON_DLL)
rt300@0 38 # define JSON_API __declspec(dllimport)
rt300@0 39 # else
rt300@0 40 # define JSON_API
rt300@0 41 # endif
rt300@0 42
rt300@0 43 #endif // JSON_CONFIG_H_INCLUDED