Baptiste Lepilleur | 4cd8bae | 2007-03-15 22:11:38 +0000 | [diff] [blame] | 1 | #ifndef JSON_CONFIG_H_INCLUDED
|
| 2 | # define JSON_CONFIG_H_INCLUDED
|
| 3 |
|
| 4 | /// If defined, indicates that json library is embedded in CppTL library.
|
| 5 | //# define JSON_IN_CPPTL 1
|
| 6 |
|
| 7 | /// If defined, indicates that json may leverage CppTL library
|
| 8 | //# define JSON_USE_CPPTL 1
|
| 9 | /// If defined, indicates that cpptl vector based map should be used instead of std::map
|
| 10 | /// as Value container.
|
| 11 | //# define JSON_USE_CPPTL_SMALLMAP 1
|
| 12 | /// If defined, indicates that Json specific container should be used
|
| 13 | /// (hash table & simple deque container with customizable allocator).
|
| 14 | /// THIS FEATURE IS STILL EXPERIMENTAL!
|
| 15 | //# define JSON_VALUE_USE_INTERNAL_MAP 1
|
| 16 | /// Force usage of standard new/malloc based allocator instead of memory pool based allocator.
|
| 17 | /// The memory pools allocator used optimization (initializing Value and ValueInternalLink
|
| 18 | /// as if it was a POD) that may cause some validation tool to report errors.
|
| 19 | /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined.
|
| 20 | //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1
|
| 21 |
|
| 22 |
|
| 23 | # ifdef JSON_IN_CPPTL
|
| 24 | # include <cpptl/config.h>
|
| 25 | # ifndef JSON_USE_CPPTL
|
| 26 | # define JSON_USE_CPPTL 1
|
| 27 | # endif
|
| 28 | # endif
|
| 29 |
|
| 30 | # ifdef JSON_IN_CPPTL
|
| 31 | # define JSON_API CPPTL_API
|
| 32 | # elif defined(JSON_DLL_BUILD)
|
| 33 | # define JSON_API __declspec(dllexport)
|
| 34 | # elif defined(JSON_DLL)
|
| 35 | # define JSON_API __declspec(dllimport)
|
| 36 | # else
|
| 37 | # define JSON_API
|
| 38 | # endif
|
| 39 |
|
| 40 | #endif // JSON_CONFIG_H_INCLUDED
|