Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/serialization/config.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 #ifndef BOOST_SERIALIZATION_CONFIG_HPP | |
2 #define BOOST_SERIALIZATION_CONFIG_HPP | |
3 | |
4 // config.hpp ---------------------------------------------// | |
5 | |
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) | |
10 | |
11 // See library home page at http://www.boost.org/libs/serialization | |
12 | |
13 //----------------------------------------------------------------------------// | |
14 | |
15 // This header implements separate compilation features as described in | |
16 // http://www.boost.org/more/separate_compilation.html | |
17 | |
18 #include <boost/config.hpp> | |
19 #include <boost/detail/workaround.hpp> | |
20 #include <boost/preprocessor/facilities/empty.hpp> | |
21 | |
22 // note: this version incorporates the related code into the the | |
23 // the same library as BOOST_ARCHIVE. This could change some day in the | |
24 // future | |
25 | |
26 // if BOOST_SERIALIZATION_DECL is defined undefine it now: | |
27 #ifdef BOOST_SERIALIZATION_DECL | |
28 #undef BOOST_SERIALIZATION_DECL | |
29 #endif | |
30 | |
31 #ifdef BOOST_HAS_DECLSPEC // defined in config system | |
32 // we need to import/export our code only if the user has specifically | |
33 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost | |
34 // libraries to be dynamically linked, or BOOST_SERIALIZATION_DYN_LINK | |
35 // if they want just this one to be dynamically liked: | |
36 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK) | |
37 #if !defined(BOOST_DYN_LINK) | |
38 #define BOOST_DYN_LINK | |
39 #endif | |
40 // export if this is our own source, otherwise import: | |
41 #if defined(BOOST_SERIALIZATION_SOURCE) | |
42 #if defined(__BORLANDC__) | |
43 #define BOOST_SERIALIZATION_DECL(T) T __export | |
44 #else | |
45 #define BOOST_SERIALIZATION_DECL(T) __declspec(dllexport) T | |
46 #endif | |
47 #else | |
48 #if defined(__BORLANDC__) | |
49 #define BOOST_SERIALIZATION_DECL(T) T __import | |
50 #else | |
51 #define BOOST_SERIALIZATION_DECL(T) __declspec(dllimport) T | |
52 #endif | |
53 #endif // defined(BOOST_SERIALIZATION_SOURCE) | |
54 #endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK) | |
55 #endif // BOOST_HAS_DECLSPEC | |
56 | |
57 // if BOOST_SERIALIZATION_DECL isn't defined yet define it now: | |
58 #ifndef BOOST_SERIALIZATION_DECL | |
59 #define BOOST_SERIALIZATION_DECL(T) T | |
60 #endif | |
61 | |
62 // enable automatic library variant selection ------------------------------// | |
63 | |
64 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB) \ | |
65 && !defined(BOOST_ARCHIVE_SOURCE) && !defined(BOOST_WARCHIVE_SOURCE) \ | |
66 && !defined(BOOST_SERIALIZATION_SOURCE) | |
67 // | |
68 // Set the name of our library, this will get undef'ed by auto_link.hpp | |
69 // once it's done with it: | |
70 // | |
71 #define BOOST_LIB_NAME boost_serialization | |
72 // | |
73 // If we're importing code from a dll, then tell auto_link.hpp about it: | |
74 // | |
75 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK) | |
76 # define BOOST_DYN_LINK | |
77 #endif | |
78 // | |
79 // And include the header that does the work: | |
80 // | |
81 #include <boost/config/auto_link.hpp> | |
82 | |
83 #endif | |
84 | |
85 #endif // BOOST_SERIALIZATION_CONFIG_HPP |