~ubuntu-branches/ubuntu/karmic/gears/karmic

« back to all changes in this revision

Viewing changes to third_party/jsoncpp/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Lesicnik
  • Date: 2009-04-30 19:15:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090430191525-0790sb5wzg8ou0xb
Tags: upstream-0.5.21.0~svn3334+dfsg
ImportĀ upstreamĀ versionĀ 0.5.21.0~svn3334+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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