diff options
Diffstat (limited to 'boost/context/detail/config.hpp')
-rw-r--r-- | boost/context/detail/config.hpp | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/boost/context/detail/config.hpp b/boost/context/detail/config.hpp index 50ada3c507..c30c8f8b84 100644 --- a/boost/context/detail/config.hpp +++ b/boost/context/detail/config.hpp @@ -4,8 +4,8 @@ // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_CTX_DETAIL_CONFIG_H -#define BOOST_CTX_DETAIL_CONFIG_H +#ifndef BOOST_CONTEXT_DETAIL_CONFIG_H +#define BOOST_CONTEXT_DETAIL_CONFIG_H #include <boost/config.hpp> #include <boost/detail/workaround.hpp> @@ -14,16 +14,12 @@ # undef BOOST_CONTEXT_DECL #endif -#if defined(BOOST_HAS_DECLSPEC) -# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK) -# if ! defined(BOOST_DYN_LINK) -# define BOOST_DYN_LINK -# endif -# if defined(BOOST_CONTEXT_SOURCE) -# define BOOST_CONTEXT_DECL BOOST_SYMBOL_EXPORT -# else -# define BOOST_CONTEXT_DECL BOOST_SYMBOL_IMPORT -# endif +#if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK) ) && ! defined(BOOST_CONTEXT_STATIC_LINK) +# if defined(BOOST_CONTEXT_SOURCE) +# define BOOST_CONTEXT_DECL BOOST_SYMBOL_EXPORT +# define BOOST_CONTEXT_BUILD_DLL +# else +# define BOOST_CONTEXT_DECL BOOST_SYMBOL_IMPORT # endif #endif @@ -39,4 +35,15 @@ # include <boost/config/auto_link.hpp> #endif -#endif // BOOST_CTX_DETAIL_CONFIG_H +#undef BOOST_CONTEXT_CALLDECL +#if (defined(i386) || defined(__i386__) || defined(__i386) \ + || defined(__i486__) || defined(__i586__) || defined(__i686__) \ + || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \ + || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \ + || defined(_M_IX86) || defined(_I86_)) && defined(BOOST_WINDOWS) +# define BOOST_CONTEXT_CALLDECL __cdecl +#else +# define BOOST_CONTEXT_CALLDECL +#endif + +#endif // BOOST_CONTEXT_DETAIL_CONFIG_H |