diff options
Diffstat (limited to 'boost/log/detail/setup_config.hpp')
-rw-r--r-- | boost/log/detail/setup_config.hpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/boost/log/detail/setup_config.hpp b/boost/log/detail/setup_config.hpp new file mode 100644 index 0000000000..11239592af --- /dev/null +++ b/boost/log/detail/setup_config.hpp @@ -0,0 +1,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_ |