config.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright Oliver Kowalke 2009.
  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_COROUTINES_DETAIL_CONFIG_H
  6. #define BOOST_COROUTINES_DETAIL_CONFIG_H
  7. #include <boost/config.hpp>
  8. #include <boost/detail/workaround.hpp>
  9. #ifdef BOOST_COROUTINES_DECL
  10. # undef BOOST_COROUTINES_DECL
  11. #endif
  12. #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK) ) && ! defined(BOOST_COROUTINES_STATIC_LINK)
  13. # if defined(BOOST_COROUTINES_SOURCE)
  14. # define BOOST_COROUTINES_DECL BOOST_SYMBOL_EXPORT
  15. # define BOOST_COROUTINES_BUILD_DLL
  16. # else
  17. # define BOOST_COROUTINES_DECL BOOST_SYMBOL_IMPORT
  18. # endif
  19. #endif
  20. #if ! defined(BOOST_COROUTINES_DECL)
  21. # define BOOST_COROUTINES_DECL
  22. #endif
  23. #if ! defined(BOOST_COROUTINES_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_COROUTINES_NO_LIB)
  24. # define BOOST_LIB_NAME boost_coroutine
  25. # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK)
  26. # define BOOST_DYN_LINK
  27. # endif
  28. # include <boost/config/auto_link.hpp>
  29. #endif
  30. #define BOOST_COROUTINES_UNIDIRECT
  31. #define BOOST_COROUTINES_SYMMETRIC
  32. #endif // BOOST_COROUTINES_DETAIL_CONFIG_H