/usr/include/ZenLib/Conf.h is in libzen-dev 0.4.34-1.
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 | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a zlib-style license that can
* be found in the License.txt file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#ifndef ZenConfH
#define ZenConfH
//---------------------------------------------------------------------------
//***************************************************************************
// Platforms
//***************************************************************************
//---------------------------------------------------------------------------
//Win32
#if defined(__NT__) || defined(_WIN32) || defined(WIN32)
#ifndef WIN32
#define WIN32
#endif
#ifndef _WIN32
#define _WIN32
#endif
#ifndef __WIN32__
#define __WIN32__ 1
#endif
#endif
//---------------------------------------------------------------------------
//Win64
#if defined(_WIN64) || defined(WIN64)
#ifndef WIN64
#define WIN64
#endif
#ifndef _WIN64
#define _WIN64
#endif
#ifndef __WIN64__
#define __WIN64__ 1
#endif
#endif
//---------------------------------------------------------------------------
//Windows
#if defined(WIN32) || defined(WIN64)
#ifndef WINDOWS
#define WINDOWS
#endif
#ifndef _WINDOWS
#define _WINDOWS
#endif
#ifndef __WINDOWS__
#define __WINDOWS__ 1
#endif
#endif
//---------------------------------------------------------------------------
//Unix (Linux, HP, Sun, BeOS...)
#if defined(UNIX) || defined(_UNIX) || defined(__UNIX__) \
|| defined(__unix) || defined(__unix__) \
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|| defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
#ifndef UNIX
#define UNIX
#endif
#ifndef _UNIX
#define _UNIX
#endif
#ifndef __UNIX__
#define __UNIX__ 1
#endif
#endif
//---------------------------------------------------------------------------
//MacOS Classic
#if defined(macintosh)
#ifndef MACOS
#define MACOS
#endif
#ifndef _MACOS
#define _MACOS
#endif
#ifndef __MACOS__
#define __MACOS__ 1
#endif
#endif
//---------------------------------------------------------------------------
//MacOS X
#if defined(__APPLE__) && defined(__MACH__)
#ifndef MACOSX
#define MACOSX
#endif
#ifndef _MACOSX
#define _MACOSX
#endif
#ifndef __MACOSX__
#define __MACOSX__ 1
#endif
#endif
//Test of targets
#if defined(WINDOWS) && defined(UNIX) && defined(MACOS) && defined(MACOSX)
#pragma message Multiple platforms???
#endif
#if !defined(WIN32) && !defined(UNIX) && !defined(MACOS) && !defined(MACOSX)
#pragma message No known platforms, assume default
#endif
//***************************************************************************
// Internationnal
//***************************************************************************
//---------------------------------------------------------------------------
//Unicode
#if defined(_UNICODE) || defined(UNICODE) || defined(__UNICODE__)
#ifndef _UNICODE
#define _UNICODE
#endif
#ifndef UNICODE
#define UNICODE
#endif
#ifndef __UNICODE__
#define __UNICODE__ 1
#endif
#endif
//---------------------------------------------------------------------------
//wchar_t stuff
#if defined(MACOS) || defined(MACOSX)
#include <wchar.h>
#endif
//***************************************************************************
// Compiler bugs/unuseful warning
//***************************************************************************
//MSVC6 : for(int t=0; t<10; ++t) { do something }; for(int t=0; t<10; ++t) { do something }
#if defined(_MSC_VER) && _MSC_VER <= 1200
#define for if(true)for
#pragma warning(disable:4786) // MSVC6 doesn't like typenames longer than 255 chars (which generates an enormous amount of warnings).
#endif
//MSVC2005 : "deprecated" warning (replacement functions are not in MinGW32 or Borland!)
#if defined(_MSC_VER) && _MSC_VER >= 1400
#pragma warning(disable : 4996)
#endif
//***************************************************************************
// (Without Namespace)
//***************************************************************************
//---------------------------------------------------------------------------
#include <limits.h>
//---------------------------------------------------------------------------
#if defined(ZENLIB_DEBUG) && (defined(DEBUG) || defined(_DEBUG))
#include "ZenLib/MemoryDebug.h"
#endif // defined(ZENLIB_DEBUG) && (defined(DEBUG) || defined(_DEBUG))
//***************************************************************************
// Compiler helpers
//***************************************************************************
//---------------------------------------------------------------------------
//Macro to cut down on compiler warnings
#ifndef UNUSED
#define UNUSED(Identifier)
#endif
//---------------------------------------------------------------------------
//If we need size_t specific integer conversion
#if !defined(SIZE_T_IS_LONG) && (defined(__LP64__) || defined(MACOSX))
#define SIZE_T_IS_LONG
#endif
//---------------------------------------------------------------------------
//(-1) is known to be the MAX of an unsigned int but GCC complains about it
#ifdef __cplusplus
#include <new> //for size_t
#else /* __cplusplus */
#include <stddef.h> //for size_t
#endif /* __cplusplus */
#include <cstring> //size_t
namespace ZenLib
{
const std::size_t Error=((std::size_t)(-1));
const std::size_t All=((std::size_t)(-1));
const std::size_t Unlimited=((std::size_t)(-1));
}
//***************************************************************************
// (With namespace)
//***************************************************************************
namespace ZenLib
{
//***************************************************************************
// International
//***************************************************************************
//---------------------------------------------------------------------------
//Char types
#if defined(__UNICODE__)
#if defined (_MSC_VER) && !defined (_NATIVE_WCHAR_T_DEFINED)
#pragma message Native wchar_t is not defined, not tested, you should put /Zc:wchar_t in compiler options
#endif
typedef wchar_t Char;
#undef __T
#define __T(__x) L ## __x
#else // defined(__UNICODE__)
typedef char Char;
#undef __T
#define __T(__x) __x
#endif // defined(__UNICODE__)
#ifdef wchar_t
typedef wchar_t wchar;
#endif // wchar_t
//***************************************************************************
// Platform differences
//***************************************************************************
//End of line
extern const Char* EOL;
extern const Char PathSeparator;
//***************************************************************************
// Types
//***************************************************************************
//---------------------------------------------------------------------------
//int
typedef signed int ints;
typedef unsigned int intu;
//---------------------------------------------------------------------------
//8-bit int
#if UCHAR_MAX==0xff
#undef MAXTYPE_INT
#define MAXTYPE_INT 8
typedef signed char int8s;
typedef unsigned char int8u;
#else
#pragma message This machine has no 8-bit integertype?
#endif
//---------------------------------------------------------------------------
//16-bit int
#if UINT_MAX == 0xffff
#undef MAXTYPE_INT
#define MAXTYPE_INT 16
typedef signed int int16s;
typedef unsigned int int16u;
#elif USHRT_MAX == 0xffff
#undef MAXTYPE_INT
#define MAXTYPE_INT 16
typedef signed short int16s;
typedef unsigned short int16u;
#else
#pragma message This machine has no 16-bit integertype?
#endif
//---------------------------------------------------------------------------
//32-bit int
#if UINT_MAX == 0xfffffffful
#undef MAXTYPE_INT
#define MAXTYPE_INT 32
typedef signed int int32s;
typedef unsigned int int32u;
#elif ULONG_MAX == 0xfffffffful
#undef MAXTYPE_INT
#define MAXTYPE_INT 32
typedef signed long int32s;
typedef unsigned long int32u;
#elif USHRT_MAX == 0xfffffffful
#undef MAXTYPE_INT
#define MAXTYPE_INT 32
typedef signed short int32s;
typedef unsigned short int32u;
#else
#pragma message This machine has no 32-bit integer type?
#endif
//---------------------------------------------------------------------------
//64-bit int
#if defined(__MINGW32__) || defined(__CYGWIN32__) || defined(__UNIX__) || defined(__MACOSX__)
#undef MAXTYPE_INT
#define MAXTYPE_INT 64
typedef signed long long int64s;
typedef unsigned long long int64u;
#elif defined(__WIN32__)
#undef MAXTYPE_INT
#define MAXTYPE_INT 64
typedef signed __int64 int64s;
typedef unsigned __int64 int64u;
#else
#pragma message This machine has no 64-bit integer type?
#endif
//---------------------------------------------------------------------------
//32-bit float
#if defined(WINDOWS) || defined(UNIX) || defined(MACOSX)
#undef MAXTYPE_FLOAT
#define MAXTYPE_FLOAT 32
typedef float float32;
#else
#pragma message This machine has no 32-bit float type?
#endif
//---------------------------------------------------------------------------
//64-bit float
#if defined(WINDOWS) || defined(UNIX) || defined(MACOSX)
#undef MAXTYPE_FLOAT
#define MAXTYPE_FLOAT 64
typedef double float64;
#else
#pragma message This machine has no 64-bit float type?
#endif
//---------------------------------------------------------------------------
//80-bit float
#if defined(WINDOWS) || defined(UNIX) || defined(MACOSX)
#undef MAXTYPE_FLOAT
#define MAXTYPE_FLOAT 80
typedef long double float80;
#else
#pragma message This machine has no 80-bit float type?
#endif
//***************************************************************************
// Nested functions
//***************************************************************************
//Unices
#if defined (UNIX)
#define snwprintf swprintf
#endif
//Windows - MSVC (before Visual Studio 2015)
#if defined (_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#define snwprintf _snwprintf
#endif
} //namespace
#endif
|