Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:57

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2012 Hartmut Kaiser
0007  * Copyright (c) 2014 Andrey Semashev
0008  */
0009 /*!
0010  * \file   atomic/detail/config.hpp
0011  *
0012  * This header defines macros for linking with compiled library of Boost.Atomic
0013  */
0014 
0015 #ifndef BOOST_ATOMIC_DETAIL_LINK_HPP_INCLUDED_
0016 #define BOOST_ATOMIC_DETAIL_LINK_HPP_INCLUDED_
0017 
0018 #include <boost/atomic/detail/config.hpp>
0019 
0020 #ifdef BOOST_HAS_PRAGMA_ONCE
0021 #pragma once
0022 #endif
0023 
0024 ///////////////////////////////////////////////////////////////////////////////
0025 //  Set up dll import/export options
0026 #if (defined(BOOST_ATOMIC_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \
0027     !defined(BOOST_ATOMIC_STATIC_LINK)
0028 
0029 #if defined(BOOST_ATOMIC_SOURCE)
0030 #define BOOST_ATOMIC_DECL BOOST_SYMBOL_EXPORT
0031 #define BOOST_ATOMIC_BUILD_DLL
0032 #else
0033 #define BOOST_ATOMIC_DECL BOOST_SYMBOL_IMPORT
0034 #endif
0035 
0036 #endif // building a shared library
0037 
0038 #ifndef BOOST_ATOMIC_DECL
0039 #define BOOST_ATOMIC_DECL
0040 #endif
0041 
0042 ///////////////////////////////////////////////////////////////////////////////
0043 //  Auto library naming
0044 #if !defined(BOOST_ATOMIC_SOURCE) && !defined(BOOST_ALL_NO_LIB) && \
0045     !defined(BOOST_ATOMIC_NO_LIB)
0046 
0047 #define BOOST_LIB_NAME boost_atomic
0048 
0049 // tell the auto-link code to select a dll when required:
0050 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ATOMIC_DYN_LINK)
0051 #define BOOST_DYN_LINK
0052 #endif
0053 
0054 #include <boost/config/auto_link.hpp>
0055 
0056 #endif  // auto-linking disabled
0057 
0058 #endif