1 ////////////////////////////////////////////////////////////////////////////// 2 // 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) 6 // 7 // See http://www.boost.org/libs/container for documentation. 8 // 9 ////////////////////////////////////////////////////////////////////////////// 10 #ifndef BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED 11 #define BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED 12 13 #ifndef BOOST_CONFIG_HPP 14 # include <boost/config.hpp> 15 #endif 16 17 #if defined(BOOST_HAS_PRAGMA_ONCE) 18 # pragma once 19 #endif 20 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 26 #endif 27 28 // 29 // Automatically link to the correct build variant where possible. 30 // 31 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_CONTAINER_NO_LIB) && !defined(BOOST_CONTAINER_SOURCE) 32 // 33 // Set the name of our library, this will get undef'ed by auto_link.hpp 34 // once it's done with it: 35 // 36 #define BOOST_LIB_NAME boost_container 37 38 // 39 // If we're importing code from a dll, then tell auto_link.hpp about it: 40 // 41 #if defined(BOOST_CONTAINER_DYNAMIC_LINKING) 42 # define BOOST_DYN_LINK 43 #endif 44 45 // 46 // And include the header that does the work: 47 // 48 #include <boost/config/auto_link.hpp> 49 #endif // auto-linking disabled 50 51 #endif //#ifndef BOOST_CONTAINER_DETAIL_AUTO_LINK_HPP_INCLUDED 52