libcopp  1.1.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 // required for SD-6 compile-time integer sequences
11 #include <utility>
12 
13 #ifdef _COPP_BOOST_CONTEXT_DECL
14 # undef _COPP_BOOST_CONTEXT_DECL
15 #endif
16 
17 #if ! defined(COPP_BOOST_CONTEXT_DECL)
18 # define COPP_BOOST_CONTEXT_DECL
19 #endif
20 #undef COPP_BOOST_CONTEXT_CALLDECL
21 #if (defined(i386) || defined(__i386__) || defined(__i386) \
22  || defined(__i486__) || defined(__i586__) || defined(__i686__) \
23  || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
24  || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
25  || defined(_M_IX86) || defined(_I86_)) && defined(_WIN32)
26 # define COPP_BOOST_CONTEXT_CALLDECL __cdecl
27 #else
28 # define COPP_BOOST_CONTEXT_CALLDECL
29 #endif
30 
31 // BOOST_CONTEXT_SEGMENTS defined at utils/features.h
32 
33 #endif // _COPP_BOOST_CONTEXT_DETAIL_CONFIG_H