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