Go to the documentation of this file.
26 #ifndef COMMON_CONFIG_HPP
27 #define COMMON_CONFIG_HPP
31 #define CLANG_VERSION (__clang__major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
34 #if defined __GNUC__ && !defined __clang__ // clang also defines GCC versions
35 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
41 #if GCC_VERSION < 40800
45 #ifndef _GLIBCXX_USE_NANOSLEEP
46 #define _GLIBCXX_USE_NANOSLEEP
47 #endif // _GLIBCXX_USE_NANOSLEEP
48 #ifndef _GLIBCXX_USE_SCHED_YIELD
49 #define _GLIBCXX_USE_SCHED_YIELD
50 #endif // _GLIBCXX_USE_SCHED_YIELD
51 #endif // GCC_VERSION < 40800
53 #if GCC_VERSION < 40700
57 #define thread_local __thread // use GCC extension instead of C++11
58 #define steady_clock monotonic_clock
59 #endif // GCC_VERSION < 40700
68 #define BOOST_PP_VARIADICS 1
74 #ifndef BOOST_NO_CXX11_SCOPED_ENUMS
75 #define BOOST_NO_CXX11_SCOPED_ENUMS 1
78 #endif // COMMON_CONFIG_HPP