aboutsummaryrefslogtreecommitdiff
path: root/odb/details/config.hxx
blob: 0b80badfae9f72cb52465d21378a9cd88cef8242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// file      : odb/details/config.hxx
// copyright : Copyright (c) 2005-2013 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef ODB_DETAILS_CONFIG_HXX
#define ODB_DETAILS_CONFIG_HXX

// no pre

#ifdef _MSC_VER
#  include <odb/details/config-vc.h>
#elif defined(ODB_COMPILER)
#  define ODB_THREADS_NONE
#  define LIBODB_STATIC_LIB
#  if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
#    define ODB_CXX11
#    if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
#      define ODB_CXX11_NULLPTR
#    endif
#    define ODB_CXX11_DELETED_FUNCTION
#    define ODB_CXX11_EXPLICIT_CONVERSION_OPERATOR
#    define ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
#    define ODB_CXX11_VARIADIC_TEMPLATE
#    define ODB_CXX11_INITIALIZER_LIST
#  endif
#else
#  include <odb/details/config.h>
#  if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
#    define ODB_CXX11
#    ifdef __GNUC__
#      if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
#        define ODB_CXX11_NULLPTR
#      endif
#    else
#      define ODB_CXX11_NULLPTR
#    endif
#    define ODB_CXX11_DELETED_FUNCTION
#    define ODB_CXX11_EXPLICIT_CONVERSION_OPERATOR
#    define ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
#    define ODB_CXX11_VARIADIC_TEMPLATE
#    define ODB_CXX11_INITIALIZER_LIST
// GCC supports strongly typed enums from 4.4 (forward -- 4.6),
// Clang -- 2.9 (3.1).
//
#    define ODB_CXX11_ENUM
#  endif
#endif

// no post

#endif // ODB_DETAILS_CONFIG_HXX