config.hpp 886 B

123456789101112131415161718192021222324252627282930
  1. // Copyright Oliver Kowalke 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_COROUTINES2_DETAIL_CONFIG_H
  6. #define BOOST_COROUTINES2_DETAIL_CONFIG_H
  7. #include <boost/config.hpp>
  8. #include <boost/context/detail/config.hpp>
  9. #include <boost/detail/workaround.hpp>
  10. #ifdef BOOST_COROUTINES2_DECL
  11. # undef BOOST_COROUTINES2_DECL
  12. #endif
  13. #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES2_DYN_LINK) ) && ! defined(BOOST_COROUTINES2_STATIC_LINK)
  14. # if defined(BOOST_COROUTINES2_SOURCE)
  15. # define BOOST_COROUTINES2_DECL BOOST_SYMBOL_EXPORT
  16. # else
  17. # define BOOST_COROUTINES2_DECL BOOST_SYMBOL_IMPORT
  18. # endif
  19. #endif
  20. #if ! defined(BOOST_COROUTINES2_DECL)
  21. # define BOOST_COROUTINES2_DECL
  22. #endif
  23. #endif // BOOST_COROUTINES2_DETAIL_CONFIG_H