Chris@16: #ifndef BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP Chris@16: #define BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: // basic_config.hpp ---------------------------------------------// Chris@16: Chris@16: // (c) Copyright Robert Ramey 2004 Chris@16: // Use, modification, and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See library home page at http://www.boost.org/libs/serialization Chris@16: Chris@16: //----------------------------------------------------------------------------// Chris@16: Chris@16: // This header implements separate compilation features as described in Chris@16: // http://www.boost.org/more/separate_compilation.html Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_DECLSPEC // defined in config system Chris@16: // we need to import/export our code only if the user has specifically Chris@16: // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost Chris@16: // libraries to be dynamically linked, or BOOST_ARCHIVE_DYN_LINK Chris@16: // if they want just this one to be dynamically linked: Chris@16: #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ARCHIVE_DYN_LINK) Chris@16: // export if this is our own source, otherwise import: Chris@16: #ifdef BOOST_ARCHIVE_SOURCE Chris@16: # define BOOST_ARCHIVE_DECL __declspec(dllexport) Chris@16: #else Chris@16: # define BOOST_ARCHIVE_DECL __declspec(dllimport) Chris@16: #endif // BOOST_ARCHIVE_SOURCE Chris@16: #endif // DYN_LINK Chris@16: #endif // BOOST_HAS_DECLSPEC Chris@16: // Chris@16: // if BOOST_ARCHIVE_DECL isn't defined yet define it now: Chris@16: #ifndef BOOST_ARCHIVE_DECL Chris@16: #define BOOST_ARCHIVE_DECL Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP