/usr/include/IceUtil/Config.h is in libzeroc-ice35-dev 3.5.1-6.4ubuntu1.
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 | // **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#ifndef ICE_UTIL_CONFIG_H
#define ICE_UTIL_CONFIG_H
//
// Endianness
//
// Most CPUs support only one endianness, with the notable exceptions
// of Itanium (IA64) and MIPS.
//
#ifdef __GLIBC__
# include <endian.h>
#endif
#if defined(HAVE_ENDIAN_H)
# include <endian.h>
# if __BYTE_ORDER==__LITTLE_ENDIAN
# define ICE_LITTLE_ENDIAN
# elif __BYTE_ORDER==__BIG_ENDIAN
# define ICE_BIG_ENDIAN
# else
# error "Unknown endian type"
# endif
#endif
//
// 32 or 64 bit mode?
//
#if defined(HAVE_LIMITS_H)
# include <stdint.h>
# include <limits.h>
# if __WORDSIZE == 64
# define ICE_64
# else
# define ICE_32
# endif
#endif
//
// Check for C++ 11 support
//
// We cannot just check for C++11 mode as some features were not
// implemented in first versions of the compilers.
//
// The require compiler version should be equal or greater than
// VC100, G++ 4.5, Clang Apple 4.2 or Clang 3.2 (Unsupported).
//
#if (defined(__GNUC__) && (((__GNUC__* 100) + __GNUC_MINOR__) >= 405) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
(defined(__clang__) && \
((defined(__apple_build_version__) && (((__clang_major__ * 100) + __clang_minor__) >= 402)) || \
(!defined(__apple_build_version__) && (((__clang_major__ * 100) + __clang_minor__) >= 302))) && \
__cplusplus >= 201103) || \
(defined(_MSC_VER) && (_MSC_VER >= 1600))
# define ICE_CPP11
#elif __cplusplus >= 201103 || defined(__GXX_EXPERIMENTAL_CXX0X__)
# error Unsupported C++11 compiler
#endif
#if defined(ICE_CPP11) && !defined(_MSC_VER)
// Visual Studio does not support noexcept yet
# define ICE_NOEXCEPT noexcept
# define ICE_NOEXCEPT_FALSE noexcept(false)
#else
# define ICE_NOEXCEPT throw()
# define ICE_NOEXCEPT_FALSE /**/
#endif
//
// Visual Studio 2012 or later, without Windows XP/2003 support
//
#if defined(_MSC_VER) && (_MSC_VER >= 1700) && !defined(_USING_V110_SDK71_)
//
// Check if building for WinRT
//
# include <winapifamily.h>
# if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
# define ICE_OS_WINRT
# define ICE_STATIC_LIBS
# endif
//
// Windows provides native condition variables on Vista and later,
// and Visual Studio 2012 with the default Platform Toolset (vc100) no
// longer supports Windows XP or Windows Server 2003.
//
// You can "switch-on" this macro to use native condition variables with
// other C++ compilers on Windows.
//
# define ICE_HAS_WIN32_CONDVAR
#endif
//
// Compiler extensions to export and import symbols: see the documentation
// for Visual C++, Solaris Studio and HP aC++.
//
#if (defined(_MSC_VER) && !defined(ICE_STATIC_LIBS)) || \
(defined(__HP_aCC) && defined(__HP_WINDLL))
# define ICE_DECLSPEC_EXPORT __declspec(dllexport)
# define ICE_DECLSPEC_IMPORT __declspec(dllimport)
# define ICE_HAS_DECLSPEC_IMPORT_EXPORT
#elif defined(__SUNPRO_CC)
# define ICE_DECLSPEC_EXPORT __global
# define ICE_DECLSPEC_IMPORT /**/
#else
# define ICE_DECLSPEC_EXPORT /**/
# define ICE_DECLSPEC_IMPORT /**/
#endif
//
// Let's use these extensions with IceUtil:
//
#ifdef ICE_UTIL_API_EXPORTS
# define ICE_UTIL_API ICE_DECLSPEC_EXPORT
#else
# define ICE_UTIL_API ICE_DECLSPEC_IMPORT
#endif
#if defined(_MSC_VER)
# define ICE_DEPRECATED_API __declspec(deprecated)
#elif defined(__GNUC__)
# define ICE_DEPRECATED_API __attribute__((deprecated))
#else
# define ICE_DEPRECATED_API /**/
#endif
#ifdef _WIN32
# if !defined(ICE_STATIC_LIBS) && defined(_MSC_VER) && (!defined(_DLL) || !defined(_MT))
# error "Only multi-threaded DLL libraries can be used with Ice!"
# endif
# include <windows.h>
#endif
//
// Some include files we need almost everywhere.
//
#include <cassert>
#include <iostream>
#include <sstream>
#ifndef _WIN32
# include <pthread.h>
# include <errno.h>
#endif
#ifdef _MSC_VER
//
// Move some warnings to level 4
//
# pragma warning( 4 : 4250 ) // ... : inherits ... via dominance
# pragma warning( 4 : 4251 ) // class ... needs to have dll-interface to be used by clients of class ..
#endif
namespace IceUtil
{
//
// By deriving from this class, other classes are made non-copyable.
//
class ICE_UTIL_API noncopyable
{
protected:
noncopyable() { }
~noncopyable() { } // May not be virtual! Classes without virtual
// operations also derive from noncopyable.
private:
noncopyable(const noncopyable&);
const noncopyable& operator=(const noncopyable&);
};
//
// Int64 typedef
//
#ifdef _MSC_VER
//
// With Visual C++, long is always 32-bit
//
typedef __int64 Int64;
#elif defined(ICE_64)
typedef long Int64;
#else
typedef long long Int64;
#endif
}
//
// ICE_INT64: macro for Int64 literal values
//
#if defined(_MSC_VER)
# define ICE_INT64(n) n##i64
#elif defined(ICE_64)
# define ICE_INT64(n) n##L
#else
# define ICE_INT64(n) n##LL
#endif
//
// The Ice version.
//
#define ICE_STRING_VERSION "3.5.1" // "A.B.C", with A=major, B=minor, C=patch
#define ICE_INT_VERSION 30501 // AABBCC, with AA=major, BB=minor, CC=patch
#endif
|