| 1 | #ifndef BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP |
|---|
| 2 | #define BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP |
|---|
| 3 | |
|---|
| 4 | // MS compatible compilers support #pragma once |
|---|
| 5 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
|---|
| 6 | # pragma once |
|---|
| 7 | #endif |
|---|
| 8 | |
|---|
| 9 | // basic_config.hpp ---------------------------------------------// |
|---|
| 10 | |
|---|
| 11 | // © Copyright Robert Ramey 2004 |
|---|
| 12 | // Use, modification, and distribution is subject to the Boost Software |
|---|
| 13 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
|---|
| 14 | // http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 15 | |
|---|
| 16 | // See library home page at http://www.boost.org/libs/serialization |
|---|
| 17 | |
|---|
| 18 | //----------------------------------------------------------------------------// |
|---|
| 19 | |
|---|
| 20 | // This header implements separate compilation features as described in |
|---|
| 21 | // http://www.boost.org/more/separate_compilation.html |
|---|
| 22 | |
|---|
| 23 | #include <boost/config.hpp> |
|---|
| 24 | |
|---|
| 25 | #ifdef BOOST_HAS_DECLSPEC // defined in config system |
|---|
| 26 | // we need to import/export our code only if the user has specifically |
|---|
| 27 | // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost |
|---|
| 28 | // libraries to be dynamically linked, or BOOST_ARCHIVE_DYN_LINK |
|---|
| 29 | // if they want just this one to be dynamically linked: |
|---|
| 30 | #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ARCHIVE_DYN_LINK) |
|---|
| 31 | // export if this is our own source, otherwise import: |
|---|
| 32 | #ifdef BOOST_ARCHIVE_SOURCE |
|---|
| 33 | # define BOOST_ARCHIVE_DECL __declspec(dllexport) |
|---|
| 34 | #else |
|---|
| 35 | # define BOOST_ARCHIVE_DECL __declspec(dllimport) |
|---|
| 36 | #endif // BOOST_ARCHIVE_SOURCE |
|---|
| 37 | #endif // DYN_LINK |
|---|
| 38 | #endif // BOOST_HAS_DECLSPEC |
|---|
| 39 | // |
|---|
| 40 | // if BOOST_ARCHIVE_DECL isn't defined yet define it now: |
|---|
| 41 | #ifndef BOOST_ARCHIVE_DECL |
|---|
| 42 | #define BOOST_ARCHIVE_DECL |
|---|
| 43 | #endif |
|---|
| 44 | |
|---|
| 45 | #endif // BOOST_ARCHIVE_DETAIL_BASIC_CONFIG_HPP |
|---|