Pack required boost code together.
[xy_vsfilter.git] / src / thirdparty / boost_1_47_0 / boost / serialization / force_include.hpp
blob8fa3c1e193369488a66d7135d7e84e5ca9761f47
1 #ifndef BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
2 #define BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
6 # pragma once
7 #endif
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // force_include.hpp:
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
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 http://www.boost.org for updates, documentation, and revision history.
19 #include <boost/config.hpp>
21 // the following help macro is to guarentee that certain coded
22 // is not removed by over-eager linker optimiser. In certain cases
23 // we create static objects must be created but are actually never
24 // referenced - creation has a side-effect such as global registration
25 // which is important to us. We make an effort to refer these objects
26 // so that a smart linker won't remove them as being unreferenced.
27 // In microsoft compilers, inlining the code that does the referring
28 // means the code gets lost and the static object is not included
29 // in the library and hence never registered. This manifests itself
30 // in an ungraceful crash at runtime when (and only when) built in
31 // release mode.
33 #if defined(BOOST_HAS_DECLSPEC) && !defined(__COMO__)
34 # if defined(__BORLANDC__)
35 # define BOOST_DLLEXPORT __export
36 # else
37 # define BOOST_DLLEXPORT __declspec(dllexport)
38 # endif
39 #elif ! defined(_WIN32) && ! defined(_WIN64)
40 # if defined(__MWERKS__)
41 # define BOOST_DLLEXPORT __declspec(dllexport)
42 # elif defined(__GNUC__) && (__GNUC__ >= 3)
43 # define BOOST_USED __attribute__ ((used))
44 # elif defined(__IBMCPP__) && (__IBMCPP__ >= 1110)
45 # define BOOST_USED __attribute__ ((used))
46 # elif defined(__INTEL_COMPILER) && (BOOST_INTEL_CXX_VERSION >= 800)
47 # define BOOST_USED __attribute__ ((used))
48 # endif
49 #endif
51 #ifndef BOOST_USED
52 # define BOOST_USED
53 #endif
55 #ifndef BOOST_DLLEXPORT
56 # define BOOST_DLLEXPORT
57 #endif
59 #endif // BOOST_SERIALIZATION_FORCE_INCLUDE_HPP