annotate DEPENDENCIES/generic/include/boost/endian/detail/config.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // boost/endian/detail/config.hpp ----------------------------------------------------//
Chris@102 2
Chris@102 3 // Copyright Beman Dawes 2003, 2010
Chris@102 4
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // See http://www.boost.org/LICENSE_1_0.txt
Chris@102 7
Chris@102 8 //--------------------------------------------------------------------------------------//
Chris@102 9
Chris@102 10 #ifndef BOOST_ENDIAN_CONFIG_HPP
Chris@102 11 #define BOOST_ENDIAN_CONFIG_HPP
Chris@102 12
Chris@102 13 // This header implements separate compilation features as described in
Chris@102 14 // http://www.boost.org/more/separate_compilation.html
Chris@102 15
Chris@102 16 #include <boost/config.hpp>
Chris@102 17 #include <boost/system/api_config.hpp> // for BOOST_POSIX_API or BOOST_WINDOWS_API
Chris@102 18
Chris@102 19 // throw an exception ----------------------------------------------------------------//
Chris@102 20 //
Chris@102 21 // Exceptions were originally thrown via boost::throw_exception().
Chris@102 22 // As throw_exception() became more complex, it caused user error reporting
Chris@102 23 // to be harder to interpret, since the exception reported became much more complex.
Chris@102 24 // The immediate fix was to throw directly, wrapped in a macro to make any later change
Chris@102 25 // easier.
Chris@102 26
Chris@102 27 #define BOOST_ENDIAN_THROW(EX) throw EX
Chris@102 28
Chris@102 29 // enable dynamic linking -------------------------------------------------------------//
Chris@102 30
Chris@102 31 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ENDIAN_DYN_LINK)
Chris@102 32 # if defined(BOOST_ENDIAN_SOURCE)
Chris@102 33 # define BOOST_ENDIAN_DECL BOOST_SYMBOL_EXPORT
Chris@102 34 # else
Chris@102 35 # define BOOST_ENDIAN_DECL BOOST_SYMBOL_IMPORT
Chris@102 36 # endif
Chris@102 37 #else
Chris@102 38 # define BOOST_ENDIAN_DECL
Chris@102 39 #endif
Chris@102 40
Chris@102 41 // enable automatic library variant selection ----------------------------------------//
Chris@102 42
Chris@102 43 #if !defined(BOOST_ENDIAN_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
Chris@102 44 && !defined(BOOST_ENDIAN_NO_LIB)
Chris@102 45 //
Chris@102 46 // Set the name of our library, this will get undef'ed by auto_link.hpp
Chris@102 47 // once it's done with it:
Chris@102 48 //
Chris@102 49 #define BOOST_LIB_NAME boost_endian
Chris@102 50 //
Chris@102 51 // If we're importing code from a dll, then tell auto_link.hpp about it:
Chris@102 52 //
Chris@102 53 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ENDIAN_DYN_LINK)
Chris@102 54 # define BOOST_DYN_LINK
Chris@102 55 #endif
Chris@102 56 //
Chris@102 57 // And include the header that does the work:
Chris@102 58 //
Chris@102 59 #include <boost/config/auto_link.hpp>
Chris@102 60 #endif // auto-linking disabled
Chris@102 61
Chris@102 62 #endif // BOOST_ENDIAN_CONFIG_HPP