Files

51 lines
1.7 KiB
C++
Raw Permalink Normal View History

2018-09-16 07:04:27 +03:00
// boost/system/config.hpp -----------------------------------------------------------//
2018-09-16 07:04:27 +03:00
// Copyright Beman Dawes 2003, 2006
2018-09-16 07:04:27 +03:00
// 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)
// See http://www.boost.org/libs/system for documentation.
2018-09-16 07:06:04 +03:00
#ifndef BOOST_SYSTEM_CONFIG_HPP
2018-09-16 07:04:27 +03:00
#define BOOST_SYSTEM_CONFIG_HPP
#include <boost/config.hpp>
2018-09-16 07:04:27 +03:00
#include <boost/system/api_config.hpp> // for BOOST_POSIX_API or BOOST_WINDOWS_API
2018-09-16 07:06:04 +03:00
// This header implemented separate compilation features as described in
2018-09-16 07:04:27 +03:00
// http://www.boost.org/more/separate_compilation.html
2018-09-16 07:06:04 +03:00
//
// It's only retained for compatibility now that the library is header-only.
2018-09-16 07:04:27 +03:00
// normalize macros ------------------------------------------------------------------//
#if !defined(BOOST_SYSTEM_DYN_LINK) && !defined(BOOST_SYSTEM_STATIC_LINK) \
&& !defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_ALL_STATIC_LINK)
# define BOOST_SYSTEM_STATIC_LINK
#endif
#if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_SYSTEM_DYN_LINK)
# define BOOST_SYSTEM_DYN_LINK
#elif defined(BOOST_ALL_STATIC_LINK) && !defined(BOOST_SYSTEM_STATIC_LINK)
# define BOOST_SYSTEM_STATIC_LINK
#endif
#if defined(BOOST_SYSTEM_DYN_LINK) && defined(BOOST_SYSTEM_STATIC_LINK)
# error Must not define both BOOST_SYSTEM_DYN_LINK and BOOST_SYSTEM_STATIC_LINK
#endif
// enable dynamic or static linking as requested --------------------------------------//
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
# if defined(BOOST_SYSTEM_SOURCE)
# define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT
# else
# define BOOST_SYSTEM_DECL BOOST_SYMBOL_IMPORT
# endif
#else
# define BOOST_SYSTEM_DECL
#endif
2018-09-16 07:04:27 +03:00
#endif // BOOST_SYSTEM_CONFIG_HPP