libcopp  2.2.0
config.hpp
Go to the documentation of this file.
1 
2 // Copyright Oliver Kowalke 2009.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _COPP_BOOST_CONTEXT_DETAIL_CONFIG_H
8 #define _COPP_BOOST_CONTEXT_DETAIL_CONFIG_H
9 
10 // clang-format off
11 #include <libcopp/utils/config/stl_include_prefix.h> // NOLINT(build/include_order)
12 // clang-format on
13 // required for SD-6 compile-time integer sequences
14 #include <utility>
15 // clang-format off
16 #include <libcopp/utils/config/stl_include_suffix.h> // NOLINT(build/include_order)
17 // clang-format on
18 
19 #ifdef _COPP_BOOST_CONTEXT_DECL
20 # undef _COPP_BOOST_CONTEXT_DECL
21 #endif
22 
23 #if !defined(COPP_BOOST_CONTEXT_DECL)
24 # define COPP_BOOST_CONTEXT_DECL
25 #endif
26 #undef COPP_BOOST_CONTEXT_CALLDECL
27 #if (defined(i386) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i586__) || \
28  defined(__i686__) || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) || defined(__I86__) || \
29  defined(__INTEL__) || defined(__IA32__) || defined(_M_IX86) || defined(_I86_)) && \
30  defined(_WIN32)
31 # define COPP_BOOST_CONTEXT_CALLDECL __cdecl
32 #else
33 # define COPP_BOOST_CONTEXT_CALLDECL
34 #endif
35 
36 // BOOST_CONTEXT_SEGMENTS defined at utils/features.h
37 
38 #endif // _COPP_BOOST_CONTEXT_DETAIL_CONFIG_H