50 lines
1.8 KiB
C++
50 lines
1.8 KiB
C++
|
|
// Copyright Oliver Kowalke 2009.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#ifndef BOOST_COROUTINES_DETAIL_CONFIG_H
|
|
#define BOOST_COROUTINES_DETAIL_CONFIG_H
|
|
|
|
#include <boost/config.hpp>
|
|
#include <boost/detail/workaround.hpp>
|
|
|
|
#ifndef BOOST_COROUTINES_NO_DEPRECATION_WARNING
|
|
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
|
|
# pragma message ("Warning: Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINES_NO_DEPRECATION_WARNING.")
|
|
# elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
|
|
# warning "Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINES_NO_DEPRECATION_WARNING."
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef BOOST_COROUTINES_DECL
|
|
# undef BOOST_COROUTINES_DECL
|
|
#endif
|
|
|
|
#if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK) ) && ! defined(BOOST_COROUTINES_STATIC_LINK)
|
|
# if defined(BOOST_COROUTINES_SOURCE)
|
|
# define BOOST_COROUTINES_DECL BOOST_SYMBOL_EXPORT
|
|
# define BOOST_COROUTINES_BUILD_DLL
|
|
# else
|
|
# define BOOST_COROUTINES_DECL BOOST_SYMBOL_IMPORT
|
|
# endif
|
|
#endif
|
|
|
|
#if ! defined(BOOST_COROUTINES_DECL)
|
|
# define BOOST_COROUTINES_DECL
|
|
#endif
|
|
|
|
#if ! defined(BOOST_COROUTINES_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_COROUTINES_NO_LIB)
|
|
# define BOOST_LIB_NAME boost_coroutine
|
|
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_COROUTINES_DYN_LINK)
|
|
# define BOOST_DYN_LINK
|
|
# endif
|
|
# include <boost/config/auto_link.hpp>
|
|
#endif
|
|
|
|
#define BOOST_COROUTINES_UNIDIRECT
|
|
#define BOOST_COROUTINES_SYMMETRIC
|
|
|
|
#endif // BOOST_COROUTINES_DETAIL_CONFIG_H
|