/usr/include/boost/log/detail/config.hpp is in libboost1.54-dev 1.54.0-4ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 | /*
* Copyright Andrey Semashev 2007 - 2013.
* 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 config.hpp
* \author Andrey Semashev
* \date 08.03.2007
*
* \brief This header is the Boost.Log library implementation, see the library documentation
* at http://www.boost.org/libs/log/doc/log.html. In this file
* internal configuration macros are defined.
*/
#ifndef BOOST_LOG_DETAIL_CONFIG_HPP_INCLUDED_
#define BOOST_LOG_DETAIL_CONFIG_HPP_INCLUDED_
// This check must be before any system headers are included, or __MSVCRT_VERSION__ may get defined to 0x0600
#if defined(__MINGW32__) && !defined(__MSVCRT_VERSION__)
// Target MinGW headers to at least MSVC 7.0 runtime by default. This will enable some useful functions.
#define __MSVCRT_VERSION__ 0x0700
#endif
#include <limits.h> // To bring in libc macros
#include <boost/config.hpp>
#if defined(BOOST_NO_RTTI)
# error Boost.Log: RTTI is required by the library
#endif
#if !defined(BOOST_WINDOWS)
# ifndef BOOST_LOG_WITHOUT_DEBUG_OUTPUT
# define BOOST_LOG_WITHOUT_DEBUG_OUTPUT
# endif
# ifndef BOOST_LOG_WITHOUT_EVENT_LOG
# define BOOST_LOG_WITHOUT_EVENT_LOG
# endif
#endif
#if (defined(_MSC_VER) && (_MSC_VER >= 1020)) || defined(__GNUC__) || defined(BOOST_CLANG) || defined(BOOST_INTEL) || defined(__COMO__) || defined(__DMC__)
# define BOOST_LOG_HAS_PRAGMA_ONCE
#endif
#ifdef BOOST_LOG_HAS_PRAGMA_ONCE
#pragma once
#endif
#if defined(BOOST_MSVC)
// For some reason MSVC 9.0 fails to link the library if static integral constants are defined in cpp
# define BOOST_LOG_BROKEN_STATIC_CONSTANTS_LINKAGE
# if _MSC_VER <= 1310
// MSVC 7.1 sometimes fails to match out-of-class template function definitions with
// their declarations if the return type or arguments of the functions involve typename keyword
// and depend on the template parameters.
# define BOOST_LOG_BROKEN_TEMPLATE_DEFINITION_MATCHING
# endif
# if _MSC_VER <= 1400
// Older MSVC versions reject friend declarations for class template instantiations
# define BOOST_LOG_BROKEN_FRIEND_TEMPLATE_INSTANTIATIONS
# endif
# if _MSC_VER <= 1600
// MSVC up to 10.0 attempts to invoke copy constructor when initializing a const reference from rvalue returned from a function.
// This fails when the returned value cannot be copied (only moved):
//
// class base {};
// class derived : public base { BOOST_MOVABLE_BUT_NOT_COPYABLE(derived) };
// derived foo();
// base const& var = foo(); // attempts to call copy constructor of derived
# define BOOST_LOG_BROKEN_REFERENCE_FROM_RVALUE_INIT
# endif
# if !defined(_STLPORT_VERSION)
// MSVC 9.0 mandates packaging of STL classes, which apparently affects alignment and
// makes alignment_of< T >::value no longer be a power of 2 for types that derive from STL classes.
// This breaks type_with_alignment and everything that relies on it.
// This doesn't happen with non-native STLs, such as STLPort. Strangely, this doesn't show with
// STL classes themselves or most of the user-defined derived classes.
// Not sure if that happens with other MSVC versions.
// See: http://svn.boost.org/trac/boost/ticket/1946
# define BOOST_LOG_BROKEN_STL_ALIGNMENT
# endif
#endif
#if defined(BOOST_INTEL)
// Intel compiler has problems with friend declarations for member classes
# define BOOST_LOG_NO_MEMBER_TEMPLATE_FRIENDS
#endif
#if defined(BOOST_MSVC) && BOOST_MSVC <= 1600
// MSVC cannot interpret constant expressions in certain contexts, such as non-type template parameters
# define BOOST_LOG_BROKEN_CONSTANT_EXPRESSIONS
#endif
#if defined(__CYGWIN__)
// Boost.ASIO is broken on Cygwin
# define BOOST_LOG_NO_ASIO
#endif
#if !defined(BOOST_LOG_USE_NATIVE_SYSLOG) && defined(BOOST_LOG_NO_ASIO)
# ifndef BOOST_LOG_WITHOUT_SYSLOG
# define BOOST_LOG_WITHOUT_SYSLOG
# endif
#endif
#if (defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x530)) && !defined(BOOST_NO_COMPILER_CONFIG)
// Sun C++ 5.3 can't handle the safe_bool idiom, so don't use it
# define BOOST_LOG_NO_UNSPECIFIED_BOOL
#endif // (defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x530)) && !defined(BOOST_NO_COMPILER_CONFIG)
#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1))
// GCC 4.0.0 (and probably older) can't cope with some optimizations regarding string literals
# define BOOST_LOG_BROKEN_STRING_LITERALS
#endif
#if defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)
// GCC 4.1 and 4.2 have buggy anonymous namespaces support, which interferes with symbol linkage
# define BOOST_LOG_ANONYMOUS_NAMESPACE namespace anonymous {} using namespace anonymous; namespace anonymous
#else
# define BOOST_LOG_ANONYMOUS_NAMESPACE namespace
#endif
#define BOOST_LOG_NO_TRAILING_RESULT_TYPE
#define BOOST_LOG_NO_INLINE_NAMESPACES
#if defined(BOOST_CLANG)
# if __has_feature(cxx_trailing_return)
# undef BOOST_LOG_NO_TRAILING_RESULT_TYPE
# endif
# if __has_feature(cxx_inline_namespaces)
# undef BOOST_LOG_NO_INLINE_NAMESPACES
# endif
#elif defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__)
# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
# undef BOOST_LOG_NO_TRAILING_RESULT_TYPE
# undef BOOST_LOG_NO_INLINE_NAMESPACES
# endif
#endif
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || (defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ <= 6))
// GCC up to 4.6 (inclusively) did not support expanding template argument packs into non-variadic template arguments
#define BOOST_LOG_NO_CXX11_ARG_PACKS_TO_NON_VARIADIC_ARGS_EXPANSION
#endif
// Extended declaration macros. Used to implement compiler-specific optimizations.
#if defined(BOOST_FORCEINLINE)
# define BOOST_LOG_FORCEINLINE BOOST_FORCEINLINE
#elif defined(_MSC_VER)
# define BOOST_LOG_FORCEINLINE __forceinline
#elif defined(__GNUC__) && (__GNUC__ > 3)
# define BOOST_LOG_FORCEINLINE inline __attribute__((always_inline))
#else
# define BOOST_LOG_FORCEINLINE inline
#endif
#if defined(_MSC_VER)
# define BOOST_LOG_NO_VTABLE __declspec(novtable)
#elif defined(__GNUC__)
# define BOOST_LOG_NO_VTABLE
#else
# define BOOST_LOG_NO_VTABLE
#endif
// An MS-like compilers' extension that allows to optimize away the needless code
#if defined(_MSC_VER)
# define BOOST_LOG_ASSUME(expr) __assume(expr)
#else
# define BOOST_LOG_ASSUME(expr)
#endif
// The statement marking unreachable branches of code to avoid warnings
#if defined(BOOST_CLANG)
# if __has_builtin(__builtin_unreachable)
# define BOOST_LOG_UNREACHABLE() __builtin_unreachable()
# endif
#elif defined(__GNUC__)
# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
# define BOOST_LOG_UNREACHABLE() __builtin_unreachable()
# endif
#elif defined(_MSC_VER)
# define BOOST_LOG_UNREACHABLE() __assume(0)
#endif
#if !defined(BOOST_LOG_UNREACHABLE)
# define BOOST_LOG_UNREACHABLE()
#endif
// Some compilers support a special attribute that shows that a function won't return
#if defined(__GNUC__) || (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x590)
// GCC and (supposedly) Sun Studio 12 support attribute syntax
# define BOOST_LOG_NORETURN __attribute__((noreturn))
#elif defined (_MSC_VER)
// Microsoft-compatible compilers go here
# define BOOST_LOG_NORETURN __declspec(noreturn)
#else
// The rest compilers might emit bogus warnings about missing return statements
// in functions with non-void return types when throw_exception is used.
# define BOOST_LOG_NORETURN
#endif
// cxxabi.h availability macro
#if defined(BOOST_CLANG)
# if defined(__has_include) && __has_include(<cxxabi.h>)
# define BOOST_LOG_HAS_CXXABI_H
# endif
#elif defined(__GNUC__) && !defined(__QNX__)
# define BOOST_LOG_HAS_CXXABI_H
#endif
#if defined(BOOST_SYMBOL_VISIBLE)
# define BOOST_LOG_VISIBLE BOOST_SYMBOL_VISIBLE
#elif defined(__GNUC__) && (__GNUC__ >= 4)
# define BOOST_LOG_VISIBLE __attribute__((visibility("default")))
#else
# define BOOST_LOG_VISIBLE
#endif
#if !defined(BOOST_LOG_BUILDING_THE_LIB)
// Detect if we're dealing with dll
# if defined(BOOST_LOG_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
# define BOOST_LOG_DLL
# endif
# if defined(BOOST_LOG_DLL)
# if defined(BOOST_SYMBOL_IMPORT)
# define BOOST_LOG_API BOOST_SYMBOL_IMPORT
# elif defined(BOOST_HAS_DECLSPEC)
# define BOOST_LOG_API __declspec(dllimport)
# endif
# endif
# ifndef BOOST_LOG_API
# define BOOST_LOG_API
# endif
//
// Automatically link to the correct build variant where possible.
//
# if !defined(BOOST_ALL_NO_LIB)
# if !defined(BOOST_LOG_NO_LIB)
# define BOOST_LIB_NAME boost_log
# if defined(BOOST_LOG_DLL)
# define BOOST_DYN_LINK
# endif
# include <boost/config/auto_link.hpp>
# endif
// In static-library builds compilers ignore auto-link comments from Boost.Log binary to
// other Boost libraries. We explicitly add comments here for other libraries.
// In dynamic-library builds this is not needed.
# if !defined(BOOST_LOG_DLL)
# include <boost/system/config.hpp>
# include <boost/filesystem/config.hpp>
# if !defined(BOOST_DATE_TIME_NO_LIB) && !defined(BOOST_DATE_TIME_SOURCE)
# define BOOST_LIB_NAME boost_date_time
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK)
# define BOOST_DYN_LINK
# endif
# include <boost/config/auto_link.hpp>
# endif
// Boost.Thread's config is included below, if needed
# endif
# endif // auto-linking disabled
#else // !defined(BOOST_LOG_BUILDING_THE_LIB)
# if defined(BOOST_LOG_DLL)
# if defined(BOOST_SYMBOL_EXPORT)
# define BOOST_LOG_API BOOST_SYMBOL_EXPORT
# elif defined(BOOST_HAS_DECLSPEC)
# define BOOST_LOG_API __declspec(dllexport)
# endif
# endif
# ifndef BOOST_LOG_API
# define BOOST_LOG_API BOOST_LOG_VISIBLE
# endif
#endif // !defined(BOOST_LOG_BUILDING_THE_LIB)
// By default we provide support for both char and wchar_t
#if !defined(BOOST_LOG_WITHOUT_CHAR)
# define BOOST_LOG_USE_CHAR
#endif
#if !defined(BOOST_LOG_WITHOUT_WCHAR_T)
# define BOOST_LOG_USE_WCHAR_T
#endif
#if !defined(BOOST_LOG_DOXYGEN_PASS)
// Check if multithreading is supported
# if !defined(BOOST_LOG_NO_THREADS) && !defined(BOOST_HAS_THREADS)
# define BOOST_LOG_NO_THREADS
# endif // !defined(BOOST_LOG_NO_THREADS) && !defined(BOOST_HAS_THREADS)
#endif // !defined(BOOST_LOG_DOXYGEN_PASS)
#if !defined(BOOST_LOG_NO_THREADS)
// We need this header to (i) enable auto-linking with Boost.Thread and
// (ii) to bring in configuration macros of Boost.Thread.
# include <boost/thread/detail/config.hpp>
#endif // !defined(BOOST_LOG_NO_THREADS)
#if !defined(BOOST_LOG_NO_THREADS)
# define BOOST_LOG_EXPR_IF_MT(expr) expr
#else
# undef BOOST_LOG_USE_COMPILER_TLS
# define BOOST_LOG_EXPR_IF_MT(expr)
#endif // !defined(BOOST_LOG_NO_THREADS)
#if defined(BOOST_LOG_USE_COMPILER_TLS)
# if defined(__GNUC__) || defined(__SUNPRO_CC)
# define BOOST_LOG_TLS __thread
# elif defined(BOOST_MSVC)
# define BOOST_LOG_TLS __declspec(thread)
# else
# undef BOOST_LOG_USE_COMPILER_TLS
# endif
#endif // defined(BOOST_LOG_USE_COMPILER_TLS)
#if defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ <= 5)
// GCC 4.5 forbids declaration of defaulted functions in private or protected sections
# define BOOST_LOG_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS
#endif
#if defined(BOOST_LOG_DOXYGEN_PASS) || !(defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || defined(BOOST_LOG_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS))
# define BOOST_LOG_DEFAULTED_FUNCTION(fun, body) fun = default;
#else
# define BOOST_LOG_DEFAULTED_FUNCTION(fun, body) fun body
#endif
#if defined(BOOST_LOG_DOXYGEN_PASS) || !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
# define BOOST_LOG_DELETED_FUNCTION(fun) fun = delete;
#else
# define BOOST_LOG_DELETED_FUNCTION(fun) private: fun;
#endif
namespace boost {
// Setup namespace name
#if !defined(BOOST_LOG_DOXYGEN_PASS)
# if defined(BOOST_LOG_DLL)
# if defined(BOOST_LOG_NO_THREADS)
# define BOOST_LOG_VERSION_NAMESPACE v2_st
# else
# if defined(BOOST_THREAD_PLATFORM_PTHREAD)
# define BOOST_LOG_VERSION_NAMESPACE v2_mt_posix
# elif defined(BOOST_THREAD_PLATFORM_WIN32)
# if defined(BOOST_LOG_USE_WINNT6_API)
# define BOOST_LOG_VERSION_NAMESPACE v2_mt_nt6
# else
# define BOOST_LOG_VERSION_NAMESPACE v2_mt_nt5
# endif // defined(BOOST_LOG_USE_WINNT6_API)
# else
# define BOOST_LOG_VERSION_NAMESPACE v2_mt
# endif
# endif // defined(BOOST_LOG_NO_THREADS)
# else
# if defined(BOOST_LOG_NO_THREADS)
# define BOOST_LOG_VERSION_NAMESPACE v2s_st
# else
# if defined(BOOST_THREAD_PLATFORM_PTHREAD)
# define BOOST_LOG_VERSION_NAMESPACE v2s_mt_posix
# elif defined(BOOST_THREAD_PLATFORM_WIN32)
# if defined(BOOST_LOG_USE_WINNT6_API)
# define BOOST_LOG_VERSION_NAMESPACE v2s_mt_nt6
# else
# define BOOST_LOG_VERSION_NAMESPACE v2s_mt_nt5
# endif // defined(BOOST_LOG_USE_WINNT6_API)
# else
# define BOOST_LOG_VERSION_NAMESPACE v2s_mt
# endif
# endif // defined(BOOST_LOG_NO_THREADS)
# endif // defined(BOOST_LOG_DLL)
namespace log {
# if !defined(BOOST_LOG_NO_INLINE_NAMESPACES)
inline namespace BOOST_LOG_VERSION_NAMESPACE {}
}
# define BOOST_LOG_OPEN_NAMESPACE namespace log { inline namespace BOOST_LOG_VERSION_NAMESPACE {
# define BOOST_LOG_CLOSE_NAMESPACE }}
# else
namespace BOOST_LOG_VERSION_NAMESPACE {}
using namespace BOOST_LOG_VERSION_NAMESPACE
# if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
__attribute__((__strong__))
# endif
;
}
# define BOOST_LOG_OPEN_NAMESPACE namespace log { namespace BOOST_LOG_VERSION_NAMESPACE {
# define BOOST_LOG_CLOSE_NAMESPACE }}
# endif
#else // !defined(BOOST_LOG_DOXYGEN_PASS)
namespace log {}
# define BOOST_LOG_OPEN_NAMESPACE namespace log {
# define BOOST_LOG_CLOSE_NAMESPACE }
#endif // !defined(BOOST_LOG_DOXYGEN_PASS)
} // namespace boost
#endif // BOOST_LOG_DETAIL_CONFIG_HPP_INCLUDED_
|