2 // Copyright Oliver Kowalke 2014.
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)
7 #ifndef BOOST_COROUTINES2_DETAIL_CONFIG_H
8 #define BOOST_COROUTINES2_DETAIL_CONFIG_H
10 #include <boost/config.hpp>
11 #include <boost/context/detail/config.hpp>
12 #include <boost/detail/workaround.hpp>
14 #ifdef BOOST_COROUTINES2_DECL
15 # undef BOOST_COROUTINES2_DECL
18 #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES2_DYN_LINK) ) && ! defined(BOOST_COROUTINES2_STATIC_LINK)
19 # if defined(BOOST_COROUTINES2_SOURCE)
20 # define BOOST_COROUTINES2_DECL BOOST_SYMBOL_EXPORT
21 # define BOOST_COROUTINES2_BUILD_DLL
23 # define BOOST_COROUTINES2_DECL BOOST_SYMBOL_IMPORT
27 #if ! defined(BOOST_COROUTINES2_DECL)
28 # define BOOST_COROUTINES2_DECL
31 #if ! defined(BOOST_COROUTINES2_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_COROUTINES2_NO_LIB)
32 # define BOOST_LIB_NAME boost_coroutine
33 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES2_DYN_LINK)
34 # define BOOST_DYN_LINK
36 # include <boost/config/auto_link.hpp>
39 #endif // BOOST_COROUTINES2_DETAIL_CONFIG_H