1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2007-2013. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED
11 #define BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
21 //Define BOOST_CONTAINER_DYNAMIC_LINKING which is independent from BOOST_*_NO_LIB
22 //and is needed is some tests that need to disable some checks (like operator new replacements)
23 //that don't work across DLL boundaries
24 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTAINER_DYN_LINK)
25 # define BOOST_CONTAINER_DYNAMIC_LINKING
29 // Automatically link to the correct build variant where possible.
31 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_CONTAINER_NO_LIB) && !defined(BOOST_CONTAINER_SOURCE)
33 // Set the name of our library, this will get undef'ed by auto_link.hpp
34 // once it's done with it:
36 #define BOOST_LIB_NAME boost_container
39 // If we're importing code from a dll, then tell auto_link.hpp about it:
41 #if defined(BOOST_CONTAINER_DYNAMIC_LINKING)
42 # define BOOST_DYN_LINK
46 // And include the header that does the work:
48 #include <boost/config/auto_link.hpp>
49 #endif // auto-linking disabled
51 #endif //#ifndef BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED