blob: 11239592affd38862350d8de31731cd0b991d4f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* 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 <boost/log/detail/config.hpp>
#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 <boost/config/auto_link.hpp>
# 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_
|