annotate DEPENDENCIES/generic/include/boost/log/detail/setup_config.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /*
Chris@101 2 * Copyright Andrey Semashev 2007 - 2015.
Chris@16 3 * Distributed under the Boost Software License, Version 1.0.
Chris@16 4 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 5 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 */
Chris@16 7 /*!
Chris@16 8 * \file setup_config.hpp
Chris@16 9 * \author Andrey Semashev
Chris@16 10 * \date 14.09.2009
Chris@16 11 *
Chris@16 12 * \brief This header is the Boost.Log library implementation, see the library documentation
Chris@16 13 * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html. In this file
Chris@16 14 * internal configuration macros are defined.
Chris@16 15 */
Chris@16 16
Chris@16 17 #ifndef BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_
Chris@16 18 #define BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_
Chris@16 19
Chris@16 20 #include <boost/log/detail/config.hpp>
Chris@16 21
Chris@16 22 #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@16 23 #pragma once
Chris@16 24 #endif
Chris@16 25
Chris@16 26 #if !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
Chris@16 27
Chris@16 28 // Detect if we're dealing with dll
Chris@16 29 # if defined(BOOST_LOG_SETUP_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
Chris@16 30 # define BOOST_LOG_SETUP_DLL
Chris@16 31 # endif
Chris@16 32
Chris@16 33 # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
Chris@16 34 # define BOOST_LOG_SETUP_API __declspec(dllimport)
Chris@16 35 # else
Chris@16 36 # define BOOST_LOG_SETUP_API
Chris@16 37 # endif // defined(BOOST_HAS_DECLSPEC)
Chris@16 38 //
Chris@16 39 // Automatically link to the correct build variant where possible.
Chris@16 40 //
Chris@16 41 # if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_LOG_SETUP_NO_LIB)
Chris@16 42 # define BOOST_LIB_NAME boost_log_setup
Chris@16 43 # if defined(BOOST_LOG_SETUP_DLL)
Chris@16 44 # define BOOST_DYN_LINK
Chris@16 45 # endif
Chris@16 46 # include <boost/config/auto_link.hpp>
Chris@16 47 # endif // auto-linking disabled
Chris@16 48
Chris@16 49 #else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
Chris@16 50
Chris@16 51 # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
Chris@16 52 # define BOOST_LOG_SETUP_API __declspec(dllexport)
Chris@16 53 # elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__))
Chris@16 54 # define BOOST_LOG_SETUP_API __attribute__((visibility("default")))
Chris@16 55 # else
Chris@16 56 # define BOOST_LOG_SETUP_API
Chris@16 57 # endif
Chris@16 58
Chris@16 59 #endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
Chris@16 60
Chris@16 61 #endif // BOOST_LOG_DETAIL_SETUP_CONFIG_HPP_INCLUDED_