Chris@16: #ifndef BOOST_ARCHIVE_DETAIL_DECL_HPP Chris@16: #define BOOST_ARCHIVE_DETAIL_DECL_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: /////////1/////////2///////// 3/////////4/////////5/////////6/////////7/////////8 Chris@16: // decl.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: #include Chris@16: Chris@16: #if defined(BOOST_HAS_DECLSPEC) Chris@16: #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)) Chris@16: #if defined(BOOST_ARCHIVE_SOURCE) Chris@16: #if defined(__BORLANDC__) Chris@16: #define BOOST_ARCHIVE_DECL(T) T __export Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export Chris@16: #else Chris@16: #define BOOST_ARCHIVE_DECL(T) __declspec(dllexport) T Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport) T Chris@16: #endif Chris@16: #else Chris@16: #if defined(__BORLANDC__) Chris@16: #define BOOST_ARCHIVE_DECL(T) T __import Chris@16: #else Chris@16: #define BOOST_ARCHIVE_DECL(T) __declspec(dllimport) T Chris@16: #endif Chris@16: #endif Chris@16: #if defined(BOOST_WARCHIVE_SOURCE) Chris@16: #if defined(__BORLANDC__) Chris@16: #define BOOST_WARCHIVE_DECL(T) T __export Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export Chris@16: #else Chris@16: #define BOOST_WARCHIVE_DECL(T) __declspec(dllexport) T Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport) T Chris@16: #endif Chris@16: #else Chris@16: #if defined(__BORLANDC__) Chris@16: #define BOOST_WARCHIVE_DECL(T) T __import Chris@16: #else Chris@16: #define BOOST_WARCHIVE_DECL(T) __declspec(dllimport) T Chris@16: #endif Chris@16: #endif Chris@16: #if !defined(BOOST_WARCHIVE_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE) Chris@16: #if defined(__BORLANDC__) Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __import Chris@16: #else Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllimport) T Chris@16: #endif Chris@16: #endif Chris@16: #endif Chris@16: #endif // BOOST_HAS_DECLSPEC Chris@16: Chris@16: #if ! defined(BOOST_ARCHIVE_DECL) Chris@16: #define BOOST_ARCHIVE_DECL(T) T Chris@16: #endif Chris@16: #if ! defined(BOOST_WARCHIVE_DECL) Chris@16: #define BOOST_WARCHIVE_DECL(T) T Chris@16: #endif Chris@16: #if ! defined(BOOST_ARCHIVE_OR_WARCHIVE_DECL) Chris@16: #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_ARCHIVE_DETAIL_DECL_HPP