123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef BOOST_CONTRACT_DETAIL_DECLSPEC_HPP_
- #define BOOST_CONTRACT_DETAIL_DECLSPEC_HPP_
- #include <boost/contract/core/config.hpp> // No compile-time overhead.
- #include <boost/config.hpp>
- #ifdef BOOST_CONTRACT_DYN_LINK
- #ifdef BOOST_CONTRACT_SOURCE
- #define BOOST_CONTRACT_DETAIL_DECLSPEC BOOST_SYMBOL_EXPORT
- #else
- #define BOOST_CONTRACT_DETAIL_DECLSPEC BOOST_SYMBOL_IMPORT
- #endif
- #else
- #define BOOST_CONTRACT_DETAIL_DECLSPEC
- #endif
- #ifdef BOOST_CONTRACT_HEADER_ONLY
- #define BOOST_CONTRACT_DETAIL_DECLINLINE inline
- #else
- #define BOOST_CONTRACT_DETAIL_DECLINLINE
-
- #if !defined(BOOST_ALL_NO_LIB) && \
- !defined(BOOST_CONTRACT_NO_LIB) && \
- !defined(BOOST_CONTRACT_SOURCE)
- #define BOOST_LIB_NAME boost_contract
- #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTRACT_DYN_LINK)
- #define BOOST_DYN_LINK
- #endif
- #include <boost/config/auto_link.hpp> // Also #undef BOOST_LIB_NAME.
- #endif
- #endif
- #endif
|