Chris@16: #ifndef BOOST_SERIALIZATION_FORCE_INCLUDE_HPP Chris@16: #define BOOST_SERIALIZATION_FORCE_INCLUDE_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 Chris@16: // force_include.hpp: Chris@16: Chris@16: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for updates, documentation, and revision history. Chris@16: Chris@16: #include Chris@16: Chris@16: // the following help macro is to guarentee that certain coded Chris@16: // is not removed by over-eager linker optimiser. In certain cases Chris@16: // we create static objects must be created but are actually never Chris@16: // referenced - creation has a side-effect such as global registration Chris@16: // which is important to us. We make an effort to refer these objects Chris@16: // so that a smart linker won't remove them as being unreferenced. Chris@16: // In microsoft compilers, inlining the code that does the referring Chris@16: // means the code gets lost and the static object is not included Chris@16: // in the library and hence never registered. This manifests itself Chris@16: // in an ungraceful crash at runtime when (and only when) built in Chris@16: // release mode. Chris@16: Chris@16: #if defined(BOOST_HAS_DECLSPEC) && !defined(__COMO__) Chris@16: # if defined(__BORLANDC__) Chris@16: # define BOOST_DLLEXPORT __export Chris@16: # else Chris@16: # define BOOST_DLLEXPORT __declspec(dllexport) Chris@16: # endif Chris@16: #elif ! defined(_WIN32) && ! defined(_WIN64) Chris@16: # if defined(__MWERKS__) Chris@16: # define BOOST_DLLEXPORT __declspec(dllexport) Chris@16: # elif defined(__GNUC__) && (__GNUC__ >= 3) Chris@16: # define BOOST_USED __attribute__ ((__used__)) Chris@16: # elif defined(__IBMCPP__) && (__IBMCPP__ >= 1110) Chris@16: # define BOOST_USED __attribute__ ((__used__)) Chris@16: # elif defined(__INTEL_COMPILER) && (BOOST_INTEL_CXX_VERSION >= 800) Chris@16: # define BOOST_USED __attribute__ ((__used__)) Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: #ifndef BOOST_USED Chris@16: # define BOOST_USED Chris@16: #endif Chris@16: Chris@16: #ifndef BOOST_DLLEXPORT Chris@16: # define BOOST_DLLEXPORT Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_SERIALIZATION_FORCE_INCLUDE_HPP