Chris@16: /* Chris@101: * Copyright Andrey Semashev 2007 - 2015. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: /*! Chris@16: * \file setup_config.hpp Chris@16: * \author Andrey Semashev Chris@16: * \date 14.09.2009 Chris@16: * Chris@16: * \brief This header is the Boost.Log library implementation, see the library documentation Chris@16: * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html. In this file Chris@16: * internal configuration macros are defined. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_ Chris@16: #define BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_ Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #if !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) Chris@16: Chris@16: // Detect if we're dealing with dll Chris@16: # if defined(BOOST_LOG_SETUP_DYN_LINK) || defined(BOOST_ALL_DYN_LINK) Chris@16: # define BOOST_LOG_SETUP_DLL Chris@16: # endif Chris@16: Chris@16: # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) Chris@16: # define BOOST_LOG_SETUP_API __declspec(dllimport) Chris@16: # else Chris@16: # define BOOST_LOG_SETUP_API Chris@16: # endif // defined(BOOST_HAS_DECLSPEC) Chris@16: // Chris@16: // Automatically link to the correct build variant where possible. Chris@16: // Chris@16: # if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_LOG_SETUP_NO_LIB) Chris@16: # define BOOST_LIB_NAME boost_log_setup Chris@16: # if defined(BOOST_LOG_SETUP_DLL) Chris@16: # define BOOST_DYN_LINK Chris@16: # endif Chris@16: # include Chris@16: # endif // auto-linking disabled Chris@16: Chris@16: #else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) Chris@16: Chris@16: # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) Chris@16: # define BOOST_LOG_SETUP_API __declspec(dllexport) Chris@16: # elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__)) Chris@16: # define BOOST_LOG_SETUP_API __attribute__((visibility("default"))) Chris@16: # else Chris@16: # define BOOST_LOG_SETUP_API Chris@16: # endif Chris@16: Chris@16: #endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) Chris@16: Chris@16: #endif // BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_