config.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #if defined(BOOST_USE_SEGMENTED_STACKS)
  31. # if ! (defined(__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 6)
  32. # error "compiler does not support segmented stacks"
  33. # endif
  34. # define BOOST_COROUTINES_SEGMENTS 10
  35. #endif
  36. #if defined(BOOST_COROUTINES_V2)
  37. # define BOOST_COROUTINES_UNIDIRECT
  38. #endif
  39. #if defined(BOOST_COROUTINES_V1)
  40. # define BOOST_COROUTINES_OLD
  41. #endif
  42. #if defined(BOOST_COROUTINES_BIDIRECT)
  43. # define BOOST_COROUTINES_OLD
  44. #endif
  45. #if ! defined(BOOST_COROUTINES_OLD)
  46. # define BOOST_COROUTINES_UNIDIRECT
  47. #endif
  48. #endif // BOOST_COROUTINES_DETAIL_CONFIG_H