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