1 #ifndef BOOST_ARCHIVE_DETAIL_DECL_HPP
2 #define BOOST_ARCHIVE_DETAIL_DECL_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2///////// 3/////////4/////////5/////////6/////////7/////////8
12 // (c) Copyright Robert Ramey 2004
13 // Use, modification, and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
17 // See library home page at http://www.boost.org/libs/serialization
19 //----------------------------------------------------------------------------//
21 // This header implements separate compilation features as described in
22 // http://www.boost.org/more/separate_compilation.html
24 #include <boost/config.hpp>
26 #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK))
27 #if defined(BOOST_ARCHIVE_SOURCE)
28 #define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT
30 #define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT
33 #if defined(BOOST_WARCHIVE_SOURCE)
34 #define BOOST_WARCHIVE_DECL BOOST_SYMBOL_EXPORT
36 #define BOOST_WARCHIVE_DECL BOOST_SYMBOL_IMPORT
39 #if defined(BOOST_WARCHIVE_SOURCE) || defined(BOOST_ARCHIVE_SOURCE)
40 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_EXPORT
42 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_IMPORT
47 #if ! defined(BOOST_ARCHIVE_DECL)
48 #define BOOST_ARCHIVE_DECL
50 #if ! defined(BOOST_WARCHIVE_DECL)
51 #define BOOST_WARCHIVE_DECL
53 #if ! defined(BOOST_ARCHIVE_OR_WARCHIVE_DECL)
54 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL
57 #endif // BOOST_ARCHIVE_DETAIL_DECL_HPP