sl@0
|
1 |
#ifndef BOOST_SERIALIZATION_CONFIG_HPP
|
sl@0
|
2 |
#define BOOST_SERIALIZATION_CONFIG_HPP
|
sl@0
|
3 |
|
sl@0
|
4 |
// MS compatible compilers support #pragma once
|
sl@0
|
5 |
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
sl@0
|
6 |
# pragma once
|
sl@0
|
7 |
#endif
|
sl@0
|
8 |
|
sl@0
|
9 |
// config.hpp ---------------------------------------------//
|
sl@0
|
10 |
|
sl@0
|
11 |
// © Copyright Robert Ramey 2004
|
sl@0
|
12 |
// Use, modification, and distribution is subject to the Boost Software
|
sl@0
|
13 |
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
14 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
15 |
|
sl@0
|
16 |
// See library home page at http://www.boost.org/libs/serialization
|
sl@0
|
17 |
|
sl@0
|
18 |
//----------------------------------------------------------------------------//
|
sl@0
|
19 |
|
sl@0
|
20 |
// This header implements separate compilation features as described in
|
sl@0
|
21 |
// http://www.boost.org/more/separate_compilation.html
|
sl@0
|
22 |
/*
|
sl@0
|
23 |
* © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
#include <boost/config.hpp>
|
sl@0
|
26 |
#include <boost/detail/workaround.hpp>
|
sl@0
|
27 |
#include <boost/preprocessor/facilities/empty.hpp>
|
sl@0
|
28 |
|
sl@0
|
29 |
// note: this version incorporates the related code into the the
|
sl@0
|
30 |
// the same library as BOOST_ARCHIVE. This could change some day in the
|
sl@0
|
31 |
// future
|
sl@0
|
32 |
|
sl@0
|
33 |
#ifdef BOOST_HAS_DECLSPEC // defined in config system
|
sl@0
|
34 |
// we need to import/export our code only if the user has specifically
|
sl@0
|
35 |
// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
|
sl@0
|
36 |
// libraries to be dynamically linked, or BOOST_SERIALIZATION_DYN_LINK
|
sl@0
|
37 |
// if they want just this one to be dynamically liked:
|
sl@0
|
38 |
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
|
sl@0
|
39 |
#define BOOST_DYN_LINK
|
sl@0
|
40 |
// export if this is our own source, otherwise import:
|
sl@0
|
41 |
#if defined(BOOST_SERIALIZATION_SOURCE)
|
sl@0
|
42 |
#if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) || defined(__MWERKS__)
|
sl@0
|
43 |
#define BOOST_SERIALIZATION_DECL(T) __declspec(dllexport) T
|
sl@0
|
44 |
#else
|
sl@0
|
45 |
#define BOOST_SERIALIZATION_DECL(T) T __declspec(dllexport)
|
sl@0
|
46 |
#endif
|
sl@0
|
47 |
#pragma message( "BOOST_SERIALIZATION_DECL __declspec(dllexport)" )
|
sl@0
|
48 |
#endif // defined(BOOST_SERIALIZATION_SOURCE)
|
sl@0
|
49 |
#endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
|
sl@0
|
50 |
#endif // BOOST_HAS_DECLSPEC
|
sl@0
|
51 |
|
sl@0
|
52 |
// if BOOST_SERIALIZATION_DECL isn't defined yet define it now:
|
sl@0
|
53 |
#ifndef BOOST_SERIALIZATION_DECL
|
sl@0
|
54 |
#define BOOST_SERIALIZATION_DECL(T) T
|
sl@0
|
55 |
#endif
|
sl@0
|
56 |
|
sl@0
|
57 |
// enable automatic library variant selection ------------------------------//
|
sl@0
|
58 |
|
sl@0
|
59 |
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB) \
|
sl@0
|
60 |
&& !defined(BOOST_SERIALIZATION_SOURCE) \
|
sl@0
|
61 |
&& !defined(BOOST_ARCHIVE_SOURCE) && !defined(BOOST_WARCHIVE_SOURCE)
|
sl@0
|
62 |
//
|
sl@0
|
63 |
// Set the name of our library, this will get undef'ed by auto_link.hpp
|
sl@0
|
64 |
// once it's done with it:
|
sl@0
|
65 |
//
|
sl@0
|
66 |
#define BOOST_LIB_NAME boost_serialization
|
sl@0
|
67 |
//
|
sl@0
|
68 |
// And include the header that does the work:
|
sl@0
|
69 |
//
|
sl@0
|
70 |
#ifndef __SYMBIAN32__
|
sl@0
|
71 |
//Enabling this reports error about STL_DEBUG version imcompatilibilty
|
sl@0
|
72 |
#include <boost/config/auto_link.hpp>
|
sl@0
|
73 |
#endif
|
sl@0
|
74 |
|
sl@0
|
75 |
#endif // !defined(BOOST_SERIALIZATION_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE)
|
sl@0
|
76 |
|
sl@0
|
77 |
//----------------------------------------------------------------------------//
|
sl@0
|
78 |
|
sl@0
|
79 |
#endif // BOOST_SERIALIZATION_CONFIG_HPP
|