1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/serialization/force_include.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,61 @@
1.4 +#ifndef BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
1.5 +#define BOOST_SERIALIZATION_FORCE_INCLUDE_HPP
1.6 +
1.7 +// MS compatible compilers support #pragma once
1.8 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
1.9 +# pragma once
1.10 +#endif
1.11 +
1.12 +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
1.13 +// force_include.hpp:
1.14 +
1.15 +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
1.16 +// Use, modification and distribution is subject to the Boost Software
1.17 +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
1.18 +// http://www.boost.org/LICENSE_1_0.txt)
1.19 +
1.20 +// See http://www.boost.org for updates, documentation, and revision history.
1.21 +
1.22 +// implementation of class export functionality. This is an alternative to
1.23 +// "forward declaration" method to provoke instantiation of derived classes
1.24 +// that are to be serialized through pointers.
1.25 +
1.26 +#include <boost/config.hpp>
1.27 +
1.28 +// the following help macro is to guarentee that certain coded
1.29 +// is not removed by over-eager linker optimiser. In certain cases
1.30 +// we create static objects must be created but are actually never
1.31 +// referenced - creation has a side-effect such as global registration
1.32 +// which is important to us. We make an effort to refer these objects
1.33 +// so that a smart linker won't remove them as being unreferenced.
1.34 +// In microsoft compilers, inlining the code that does the referring
1.35 +// means the code gets lost and the static object is not included
1.36 +// in the library and hence never registered. This manifests itself
1.37 +// in an ungraceful crash at runtime when (and only when) built in
1.38 +// release mode.
1.39 +
1.40 +#if defined(BOOST_HAS_DECLSPEC) && !defined(__COMO__)
1.41 +# if defined(__BORLANDC__)
1.42 +# define BOOST_DLLEXPORT __export
1.43 +# else
1.44 +# define BOOST_DLLEXPORT __declspec(dllexport)
1.45 +# endif
1.46 +#elif ! defined(_WIN32) && ! defined(_WIN64)
1.47 +# if defined(__MWERKS__)
1.48 +# // define BOOST_USED __attribute__ ((used))
1.49 +# elif defined(__GNUC__) && (__GNUC__ >= 3)
1.50 +# define BOOST_USED __attribute__ ((used))
1.51 +# elif defined(__INTEL_COMPILER) && (BOOST_INTEL_CXX_VERSION >= 800)
1.52 +# define BOOST_USED __attribute__ ((used))
1.53 +# endif
1.54 +#endif
1.55 +
1.56 +#ifndef BOOST_USED
1.57 +# define BOOST_USED
1.58 +#endif
1.59 +
1.60 +#ifndef BOOST_DLLEXPORT
1.61 +# define BOOST_DLLEXPORT
1.62 +#endif
1.63 +
1.64 +#endif // BOOST_SERIALIZATION_FORCE_INCLUDE_HPP