annotate DEPENDENCIES/generic/include/boost/serialization/force_include.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 #ifndef BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
Chris@16 2 #define BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
Chris@16 3
Chris@16 4 // MS compatible compilers support #pragma once
Chris@101 5 #if defined(_MSC_VER)
Chris@16 6 # pragma once
Chris@16 7 #endif
Chris@16 8
Chris@16 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
Chris@16 10 // force_include.hpp:
Chris@16 11
Chris@16 12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
Chris@16 13 // Use, modification and distribution is subject to the Boost Software
Chris@16 14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 15 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 16
Chris@16 17 // See http://www.boost.org for updates, documentation, and revision history.
Chris@16 18
Chris@16 19 #include <boost/config.hpp>
Chris@16 20
Chris@16 21 // the following help macro is to guarentee that certain coded
Chris@16 22 // is not removed by over-eager linker optimiser. In certain cases
Chris@16 23 // we create static objects must be created but are actually never
Chris@16 24 // referenced - creation has a side-effect such as global registration
Chris@16 25 // which is important to us. We make an effort to refer these objects
Chris@16 26 // so that a smart linker won't remove them as being unreferenced.
Chris@16 27 // In microsoft compilers, inlining the code that does the referring
Chris@16 28 // means the code gets lost and the static object is not included
Chris@16 29 // in the library and hence never registered. This manifests itself
Chris@16 30 // in an ungraceful crash at runtime when (and only when) built in
Chris@16 31 // release mode.
Chris@16 32
Chris@16 33 #if defined(BOOST_HAS_DECLSPEC) && !defined(__COMO__)
Chris@16 34 # if defined(__BORLANDC__)
Chris@16 35 # define BOOST_DLLEXPORT __export
Chris@16 36 # else
Chris@16 37 # define BOOST_DLLEXPORT __declspec(dllexport)
Chris@16 38 # endif
Chris@16 39 #elif ! defined(_WIN32) && ! defined(_WIN64)
Chris@16 40 # if defined(__MWERKS__)
Chris@16 41 # define BOOST_DLLEXPORT __declspec(dllexport)
Chris@16 42 # elif defined(__GNUC__) && (__GNUC__ >= 3)
Chris@16 43 # define BOOST_USED __attribute__ ((__used__))
Chris@16 44 # elif defined(__IBMCPP__) && (__IBMCPP__ >= 1110)
Chris@16 45 # define BOOST_USED __attribute__ ((__used__))
Chris@16 46 # elif defined(__INTEL_COMPILER) && (BOOST_INTEL_CXX_VERSION >= 800)
Chris@16 47 # define BOOST_USED __attribute__ ((__used__))
Chris@16 48 # endif
Chris@16 49 #endif
Chris@16 50
Chris@16 51 #ifndef BOOST_USED
Chris@16 52 # define BOOST_USED
Chris@16 53 #endif
Chris@16 54
Chris@16 55 #ifndef BOOST_DLLEXPORT
Chris@16 56 # define BOOST_DLLEXPORT
Chris@16 57 #endif
Chris@16 58
Chris@16 59 #endif // BOOST_SERIALIZATION_FORCE_INCLUDE_HPP