1 #ifndef BOOST_SERIALIZATION_CONFIG_HPP
2 #define BOOST_SERIALIZATION_CONFIG_HPP
4 // config.hpp ---------------------------------------------//
6 // (c) Copyright Robert Ramey 2004
7 // Use, modification, and distribution is subject to the Boost Software
8 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 // See library home page at http://www.boost.org/libs/serialization
13 //----------------------------------------------------------------------------//
15 // This header implements separate compilation features as described in
16 // http://www.boost.org/more/separate_compilation.html
18 #include <boost/config.hpp>
19 #include <boost/detail/workaround.hpp>
21 // note: this version incorporates the related code into the the
22 // the same library as BOOST_ARCHIVE. This could change some day in the
25 // if BOOST_SERIALIZATION_DECL is defined undefine it now:
26 #ifdef BOOST_SERIALIZATION_DECL
27 #undef BOOST_SERIALIZATION_DECL
30 // we need to import/export our code only if the user has specifically
31 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
32 // libraries to be dynamically linked, or BOOST_SERIALIZATION_DYN_LINK
33 // if they want just this one to be dynamically liked:
34 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
35 #if !defined(BOOST_DYN_LINK)
36 #define BOOST_DYN_LINK
38 // export if this is our own source, otherwise import:
39 #if defined(BOOST_SERIALIZATION_SOURCE)
40 #define BOOST_SERIALIZATION_DECL BOOST_SYMBOL_EXPORT
42 #define BOOST_SERIALIZATION_DECL BOOST_SYMBOL_IMPORT
43 #endif // defined(BOOST_SERIALIZATION_SOURCE)
44 #endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
46 // if BOOST_SERIALIZATION_DECL isn't defined yet define it now:
47 #ifndef BOOST_SERIALIZATION_DECL
48 #define BOOST_SERIALIZATION_DECL
51 // enable automatic library variant selection ------------------------------//
53 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB) \
54 && !defined(BOOST_ARCHIVE_SOURCE) && !defined(BOOST_WARCHIVE_SOURCE) \
55 && !defined(BOOST_SERIALIZATION_SOURCE)
57 // Set the name of our library, this will get undef'ed by auto_link.hpp
58 // once it's done with it:
60 #define BOOST_LIB_NAME boost_serialization
62 // If we're importing code from a dll, then tell auto_link.hpp about it:
64 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
65 # define BOOST_DYN_LINK
68 // And include the header that does the work:
70 #include <boost/config/auto_link.hpp>
74 #endif // BOOST_SERIALIZATION_CONFIG_HPP