blob: 40c8fba8e32b14448e79278dd838b86a90c3e109 (
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
|
// file : cutl/details/config.hxx
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license : MIT; see accompanying LICENSE file
#ifndef CUTL_DETAILS_CONFIG_HXX
#define CUTL_DETAILS_CONFIG_HXX
// C++11 support.
//
#ifdef _MSC_VER
# if _MSC_VER >= 1900
# define LIBCUTL_CXX11
# endif
#else
# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
# ifdef __clang__ // Pretends to be a really old __GNUC__ on some platforms.
# define LIBCUTL_CXX11
# elif defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 9) || __GNUC__ > 4
# define LIBCUTL_CXX11
# endif
# else
# define LIBCUTL_CXX11
# endif
# endif
#endif
#ifdef LIBCUTL_CXX11
# define LIBCUTL_NOTHROW_NOEXCEPT noexcept
#else
# define LIBCUTL_NOTHROW_NOEXCEPT throw()
#endif
#ifdef LIBCUTL_BUILD2
# ifdef _MSC_VER
# include <cutl/details/build2/config-vc.h>
# else
# include <cutl/details/build2/config.h>
# endif
#else
# ifdef _MSC_VER
# include <cutl/details/config-vc.h>
# else
# include <cutl/details/config.h>
# endif
#endif
#endif // CUTL_DETAILS_CONFIG_HXX
|