/usr/include/dcmtk/oflog/config.h is in libdcmtk-dev 3.6.2-3build3.
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 | // Copyright (C) 2009-2010, Vaclav Haisman. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modifica-
// tion, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
// DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef DCMTK_LOG4CPLUS_CONFIG_HXX
#define DCMTK_LOG4CPLUS_CONFIG_HXX
#include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
#include "dcmtk/ofstd/ofdefine.h" /* We need DCMTK_DECL_EXPORT/_IMPORT */
#ifdef oflog_EXPORTS
# define DCMTK_INSIDE_LOG4CPLUS
#endif
#if defined (_WIN32)
# include "dcmtk/oflog/config/win32.h"
#elif (defined(__MWERKS__) && defined(__MACOS__))
# include "dcmtk/oflog/config/macosx.h"
#else
# include "dcmtk/oflog/config/defines.h"
#endif
#if ! defined (UNICODE) && ! defined (DCMTK_LOG4CPLUS_HAVE_VSNPRINTF_S) \
&& ! defined (DCMTK_LOG4CPLUS_HAVE__VSNPRINTF_S) \
&& ! defined (DCMTK_LOG4CPLUS_HAVE_VSNPRINTF) \
&& ! defined (DCMTK_LOG4CPLUS_HAVE__VSNPRINTF)
# undef DCMTK_LOG4CPLUS_USE_POOR_MANS_SNPRINTF
# define DCMTK_LOG4CPLUS_USE_POOR_MANS_SNPRINTF
#endif
# if ! defined (DCMTK_LOG4CPLUS_WORKING_LOCALE) \
&& ! defined (DCMTK_LOG4CPLUS_WORKING_C_LOCALE) \
&& ! defined (DCMTK_LOG4CPLUS_WITH_ICONV)
# define DCMTK_LOG4CPLUS_POOR_MANS_CHCONV
#endif
#ifndef DCMTK_LOG4CPLUS_DECLSPEC_EXPORT
#define DCMTK_LOG4CPLUS_DECLSPEC_EXPORT /* empty */
#endif
#ifndef DCMTK_LOG4CPLUS_DECLSPEC_IMPORT
#define DCMTK_LOG4CPLUS_DECLSPEC_IMPORT /* empty */
#endif
#ifndef DCMTK_LOG4CPLUS_DECLSPEC_PRIVATE
#define DCMTK_LOG4CPLUS_DECLSPEC_PRIVATE /* empty */
#endif
#define DCMTK_LOG4CPLUS_PRIVATE DCMTK_LOG4CPLUS_DECLSPEC_PRIVATE
#if !defined(_WIN32)
# define DCMTK_LOG4CPLUS_USE_BSD_SOCKETS
# if !defined(DCMTK_LOG4CPLUS_SINGLE_THREADED)
# define DCMTK_LOG4CPLUS_USE_PTHREADS
# endif
#endif // !_WIN32
#if defined (DCMTK_INSIDE_LOG4CPLUS)
# undef DCMTK_LOG4CPLUS_EXPORT
# define DCMTK_LOG4CPLUS_EXPORT DCMTK_DECL_EXPORT
#else
# undef DCMTK_LOG4CPLUS_EXPORT
# define DCMTK_LOG4CPLUS_EXPORT DCMTK_DECL_IMPORT
#endif // defined (DCMTK_INSIDE_LOG4CPLUS)
#if defined (DCMTK_LOG4CPLUS_INLINES_ARE_EXPORTED) \
&& defined (DCMTK_LOG4CPLUS_BUILD_DLL)
# define DCMTK_LOG4CPLUS_INLINE_EXPORT inline
#else
# define DCMTK_LOG4CPLUS_INLINE_EXPORT
#endif
#if defined (UNICODE)
# if defined (_MSC_VER) && _MSC_VER >= 1400
# define DCMTK_LOG4CPLUS_FSTREAM_ACCEPTS_WCHAR_T
# endif
# if defined (_MSC_VER) && _MSC_VER >= 1600
# define DCMTK_LOG4CPLUS_HAVE_CODECVT_UTF8_FACET
# define DCMTK_LOG4CPLUS_HAVE_CODECVT_UTF16_FACET
# endif
#endif
// C++11 stuff
#if ! defined (__has_feature)
//! __has_feature(X) is Clangs way for testing features.
//! Define it to 0 if it does not exist.
# define __has_feature(X) 0
#endif
#if (defined (_MSC_VER) && _MSC_VER >= 1600) \
|| defined (__GXX_EXPERIMENTAL_CXX0X__)
# define DCMTK_LOG4CPLUS_HAVE_CXX11_SUPPORT
#endif
#if defined (DCMTK_LOG4CPLUS_HAVE_CXX11_SUPPORT) \
|| __has_feature (cxx_rvalue_references)
# define DCMTK_LOG4CPLUS_HAVE_RVALUE_REFS
#endif
#if ! defined (UNICODE) && defined (__GNUC__) && __GNUC__ >= 3
# define DCMTK_LOG4CPLUS_FORMAT_ATTRIBUTE(archetype, format_index, first_arg_index) \
__attribute__ ((format (archetype, format_index, first_arg_index)))
#else
# define DCMTK_LOG4CPLUS_FORMAT_ATTRIBUTE(archetype, fmt_index, first_arg_index) \
/* empty */
#endif
#if defined (__GNUC__) && __GNUC__ >= 3
# define DCMTK_LOG4CPLUS_ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
# define DCMTK_LOG4CPLUS_ATTRIBUTE_PURE __attribute__ ((__pure__))
# define DCMTK_LOG4CPLUS_BUILTIN_EXPECT(exp, c) __builtin_expect ((exp), (c))
#else
# define DCMTK_LOG4CPLUS_ATTRIBUTE_NORETURN /* empty */
# define DCMTK_LOG4CPLUS_ATTRIBUTE_PURE /* empty */
# define DCMTK_LOG4CPLUS_BUILTIN_EXPECT(exp, c) (exp)
#endif
#define DCMTK_LOG4CPLUS_LIKELY(cond) DCMTK_LOG4CPLUS_BUILTIN_EXPECT(!! (cond), 1)
#define DCMTK_LOG4CPLUS_UNLIKELY(cond) DCMTK_LOG4CPLUS_BUILTIN_EXPECT(!! (cond), 0)
#if defined (_MSC_VER) \
|| (defined (__COMO__) && __COMO_VERSION__ >= 400) /* ??? */ \
|| (defined (__DMC__) && __DMC__ >= 0x700) /* ??? */ \
|| (defined (__clang__) && __clang_major__ >= 3) \
|| (defined (__GNUC__) && (__GNUC__ >= 4 \
|| (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)))
# define DCMTK_LOG4CPLUS_HAVE_PRAGMA_ONCE
# pragma once
#endif
#include "dcmtk/oflog/helpers/threadcf.h"
#if defined(__cplusplus)
namespace dcmtk
{
namespace log4cplus
{
//! Per thread cleanup function. Users should call this function before
//! a thread ends its execution. It frees resources allocated in thread local
//! storage. It is important only for multi-threaded static library builds
//! of log4cplus and user threads. In all other cases the clean up is provided
//! automatically by other means.
DCMTK_LOG4CPLUS_EXPORT void threadCleanup ();
} // namespace log4cplus
} // end namespace dcmtk
#endif
#endif // DCMTK_LOG4CPLUS_CONFIG_HXX
|