config.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef BOOST_COROUTINES_NO_DEPRECATION_WARNING
  10. # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
  11. # pragma message ("Warning: Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINES_NO_DEPRECATION_WARNING.")
  12. # elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
  13. # warning "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINES_NO_DEPRECATION_WARNING."
  14. # endif
  15. #endif
  16. #ifdef BOOST_COROUTINES_DECL
  17. # undef BOOST_COROUTINES_DECL
  18. #endif
  19. #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK) ) && ! defined(BOOST_COROUTINES_STATIC_LINK)
  20. # if defined(BOOST_COROUTINES_SOURCE)
  21. # define BOOST_COROUTINES_DECL BOOST_SYMBOL_EXPORT
  22. # define BOOST_COROUTINES_BUILD_DLL
  23. # else
  24. # define BOOST_COROUTINES_DECL BOOST_SYMBOL_IMPORT
  25. # endif
  26. #endif
  27. #if ! defined(BOOST_COROUTINES_DECL)
  28. # define BOOST_COROUTINES_DECL
  29. #endif
  30. #if ! defined(BOOST_COROUTINES_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_COROUTINES_NO_LIB)
  31. # define BOOST_LIB_NAME boost_coroutine
  32. # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK)
  33. # define BOOST_DYN_LINK
  34. # endif
  35. # include <boost/config/auto_link.hpp>
  36. #endif
  37. #define BOOST_COROUTINES_UNIDIRECT
  38. #define BOOST_COROUTINES_SYMMETRIC
  39. #endif // BOOST_COROUTINES_DETAIL_CONFIG_H