Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / context / detail / config.hpp
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 BOOST_CONTEXT_DETAIL_CONFIG_H
8 #define BOOST_CONTEXT_DETAIL_CONFIG_H
9
10 #include <boost/config.hpp>
11 #include <boost/detail/workaround.hpp>
12
13 #ifdef BOOST_CONTEXT_DECL
14 # undef BOOST_CONTEXT_DECL
15 #endif
16
17 #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK) ) && ! defined(BOOST_CONTEXT_STATIC_LINK)
18 # if defined(BOOST_CONTEXT_SOURCE)
19 #  define BOOST_CONTEXT_DECL BOOST_SYMBOL_EXPORT
20 #  define BOOST_CONTEXT_BUILD_DLL
21 # else
22 #  define BOOST_CONTEXT_DECL BOOST_SYMBOL_IMPORT
23 # endif
24 #endif
25
26 #if ! defined(BOOST_CONTEXT_DECL)
27 # define BOOST_CONTEXT_DECL
28 #endif
29
30 #if ! defined(BOOST_CONTEXT_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_CONTEXT_NO_LIB)
31 # define BOOST_LIB_NAME boost_context
32 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK)
33 #  define BOOST_DYN_LINK
34 # endif
35 # include <boost/config/auto_link.hpp>
36 #endif
37
38 #undef BOOST_CONTEXT_CALLDECL
39 #if (defined(i386) || defined(__i386__) || defined(__i386) \
40     || defined(__i486__) || defined(__i586__) || defined(__i686__) \
41     || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
42     || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
43     || defined(_M_IX86) || defined(_I86_)) && defined(BOOST_WINDOWS)
44 # define BOOST_CONTEXT_CALLDECL __cdecl
45 #else
46 # define BOOST_CONTEXT_CALLDECL
47 #endif
48
49 #endif // BOOST_CONTEXT_DETAIL_CONFIG_H