📄 lzodefs.h
字号:
/* lzodefs.h -- architecture, OS and compiler specific defines This file is part of the LZO real-time data compression library. Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. The LZO library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the LZO library; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Markus F.X.J. Oberhumer <markus@oberhumer.com> http://www.oberhumer.com/opensource/lzo/ */#ifndef __LZODEFS_H_INCLUDED#define __LZODEFS_H_INCLUDED 1#if defined(__CYGWIN32__) && !defined(__CYGWIN__)# define __CYGWIN__ __CYGWIN32__#endif#if defined(__IBMCPP__) && !defined(__IBMC__)# define __IBMC__ __IBMCPP__#endif#if defined(__ICL) && defined(_WIN32) && !defined(__INTEL_COMPILER)# define __INTEL_COMPILER __ICL#endif#if 1 && defined(__INTERIX) && defined(__GNUC__) && !defined(_ALL_SOURCE)# define _ALL_SOURCE 1#endif#if defined(__mips__) && defined(__R5900__)# if !defined(__LONG_MAX__)# define __LONG_MAX__ 9223372036854775807L# endif#endif#if defined(__INTEL_COMPILER) && defined(__linux__)# pragma warning(disable: 193)#endif#if defined(__KEIL__) && defined(__C166__)# pragma warning disable = 322#elif 0 && defined(__C251__)# pragma warning disable = 322#endif#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__MWERKS__)# if (_MSC_VER >= 1300)# pragma warning(disable: 4668)# endif#endif#if 0 && defined(__WATCOMC__)# if (__WATCOMC__ >= 1050) && (__WATCOMC__ < 1060)# pragma warning 203 9# endif#endif#if defined(__BORLANDC__) && defined(__MSDOS__) && !defined(__FLAT__)# pragma option -h#endif#if 0#define LZO_0xffffL 0xfffful#define LZO_0xffffffffL 0xfffffffful#else#define LZO_0xffffL 65535ul#define LZO_0xffffffffL 4294967295ul#endif#if (LZO_0xffffL == LZO_0xffffffffL)# error "your preprocessor is broken 1"#endif#if (16ul * 16384ul != 262144ul)# error "your preprocessor is broken 2"#endif#if 0#if (32767 >= 4294967295ul)# error "your preprocessor is broken 3"#endif#if (65535u >= 4294967295ul)# error "your preprocessor is broken 4"#endif#endif#if (UINT_MAX == LZO_0xffffL)#if defined(__ZTC__) && defined(__I86__) && !defined(__OS2__)# if !defined(MSDOS)# define MSDOS 1# endif# if !defined(_MSDOS)# define _MSDOS 1# endif#elif 0 && defined(__VERSION) && defined(MB_LEN_MAX)# if (__VERSION == 520) && (MB_LEN_MAX == 1)# if !defined(__AZTEC_C__)# define __AZTEC_C__ __VERSION# endif# if !defined(__DOS__)# define __DOS__ 1# endif# endif#endif#endif#if defined(_MSC_VER) && defined(M_I86HM) && (UINT_MAX == LZO_0xffffL)# define ptrdiff_t long# define _PTRDIFF_T_DEFINED#endif#if (UINT_MAX == LZO_0xffffL)# undef __LZO_RENAME_A# undef __LZO_RENAME_B# if defined(__AZTEC_C__) && defined(__DOS__)# define __LZO_RENAME_A 1# elif defined(_MSC_VER) && defined(MSDOS)# if (_MSC_VER < 600)# define __LZO_RENAME_A 1# elif (_MSC_VER < 700)# define __LZO_RENAME_B 1# endif# elif defined(__TSC__) && defined(__OS2__)# define __LZO_RENAME_A 1# elif defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0410)# define __LZO_RENAME_A 1# elif defined(__PACIFIC__) && defined(DOS)# if !defined(__far)# define __far far# endif# if !defined(__near)# define __near near# endif# endif# if defined(__LZO_RENAME_A)# if !defined(__cdecl)# define __cdecl cdecl# endif# if !defined(__far)# define __far far# endif# if !defined(__huge)# define __huge huge# endif# if !defined(__near)# define __near near# endif# if !defined(__pascal)# define __pascal pascal# endif# if !defined(__huge)# define __huge huge# endif# elif defined(__LZO_RENAME_B)# if !defined(__cdecl)# define __cdecl _cdecl# endif# if !defined(__far)# define __far _far# endif# if !defined(__huge)# define __huge _huge# endif# if !defined(__near)# define __near _near# endif# if !defined(__pascal)# define __pascal _pascal# endif# elif (defined(__PUREC__) || defined(__TURBOC__)) && defined(__TOS__)# if !defined(__cdecl)# define __cdecl cdecl# endif# if !defined(__pascal)# define __pascal pascal# endif# endif# undef __LZO_RENAME_A# undef __LZO_RENAME_B#endif#if (UINT_MAX == LZO_0xffffL)#if defined(__AZTEC_C__) && defined(__DOS__)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1#elif defined(_MSC_VER) && defined(MSDOS)# if (_MSC_VER < 600)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1# endif# if (_MSC_VER < 700)# define LZO_BROKEN_INTEGRAL_PROMOTION 1# define LZO_BROKEN_SIZEOF 1# endif#elif defined(__PACIFIC__) && defined(DOS)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1#elif defined(__TURBOC__) && defined(__MSDOS__)# if (__TURBOC__ < 0x0150)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# define LZO_BROKEN_INTEGRAL_CONSTANTS 1# define LZO_BROKEN_INTEGRAL_PROMOTION 1# endif# if (__TURBOC__ < 0x0200)# define LZO_BROKEN_SIZEOF 1# endif# if (__TURBOC__ < 0x0400) && defined(__cplusplus)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# endif#elif (defined(__PUREC__) || defined(__TURBOC__)) && defined(__TOS__)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# define LZO_BROKEN_SIZEOF 1#endif#endif#if defined(__WATCOMC__) && (__WATCOMC__ < 900)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1#endif#define LZO_CPP_STRINGIZE(x) #x#define LZO_CPP_MACRO_EXPAND(x) LZO_CPP_STRINGIZE(x)#define LZO_CPP_CONCAT2(a,b) a ## b#define LZO_CPP_CONCAT3(a,b,c) a ## b ## c#define LZO_CPP_CONCAT4(a,b,c,d) a ## b ## c ## d#define LZO_CPP_CONCAT5(a,b,c,d,e) a ## b ## c ## d ## e#define LZO_CPP_ECONCAT2(a,b) LZO_CPP_CONCAT2(a,b)#define LZO_CPP_ECONCAT3(a,b,c) LZO_CPP_CONCAT3(a,b,c)#define LZO_CPP_ECONCAT4(a,b,c,d) LZO_CPP_CONCAT4(a,b,c,d)#define LZO_CPP_ECONCAT5(a,b,c,d,e) LZO_CPP_CONCAT5(a,b,c,d,e)#define __LZO_MASK_GEN(o,b) (((((o) << ((b)-1)) - (o)) << 1) + (o))#if 1 && defined(__cplusplus)# if !defined(__STDC_CONSTANT_MACROS)# define __STDC_CONSTANT_MACROS 1# endif# if !defined(__STDC_LIMIT_MACROS)# define __STDC_LIMIT_MACROS 1# endif#endif#if defined(__cplusplus)# define LZO_EXTERN_C extern "C"#else# define LZO_EXTERN_C extern#endif#if !defined(__LZO_OS_OVERRIDE)#if defined(LZO_OS_FREESTANDING)# define LZO_INFO_OS "freestanding"#elif defined(LZO_OS_EMBEDDED)# define LZO_INFO_OS "embedded"#elif defined(__CYGWIN__) && defined(__GNUC__)# define LZO_OS_CYGWIN 1# define LZO_INFO_OS "cygwin"#elif defined(__EMX__) && defined(__GNUC__)# define LZO_OS_EMX 1# define LZO_INFO_OS "emx"#elif defined(__BEOS__)# define LZO_OS_BEOS 1# define LZO_INFO_OS "beos"#elif defined(__Lynx__)# define LZO_OS_LYNXOS 1# define LZO_INFO_OS "lynxos"#elif defined(__OS400__)# define LZO_OS_OS400 1# define LZO_INFO_OS "os400"#elif defined(__QNX__)# define LZO_OS_QNX 1# define LZO_INFO_OS "qnx"#elif defined(__BORLANDC__) && defined(__DPMI32__) && (__BORLANDC__ >= 0x0460)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"#elif defined(__BORLANDC__) && defined(__DPMI16__)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"#elif defined(__ZTC__) && defined(DOS386)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"#elif defined(__OS2__) || defined(__OS2V2__)# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_OS216 1# define LZO_INFO_OS "os216"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_OS2 1# define LZO_INFO_OS "os2"# else# error "check your limits.h header"# endif#elif defined(__WIN64__) || defined(_WIN64) || defined(WIN64)# define LZO_OS_WIN64 1# define LZO_INFO_OS "win64"#elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WINDOWS_386__)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"#elif defined(__MWERKS__) && defined(__INTEL__)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"#elif defined(__WINDOWS__) || defined(_WINDOWS) || defined(_Windows)# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_WIN16 1# define LZO_INFO_OS "win16"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"# else# error "check your limits.h header"# endif#elif defined(__DOS__) || defined(__MSDOS__) || defined(_MSDOS) || defined(MSDOS) || (defined(__PACIFIC__) && defined(DOS))# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"# else# error "check your limits.h header"# endif#elif defined(__WATCOMC__)# if defined(__NT__) && (UINT_MAX == LZO_0xffffL)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"# elif defined(__NT__) && (__WATCOMC__ < 1100)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"# else# error "please specify a target using the -bt compiler option"# endif#elif defined(__palmos__)# define LZO_OS_PALMOS 1# define LZO_INFO_OS "palmos"#elif defined(__TOS__) || defined(__atarist__)# define LZO_OS_TOS 1# define LZO_INFO_OS "tos"#elif defined(macintosh) && !defined(__ppc__)# define LZO_OS_MACCLASSIC 1# define LZO_INFO_OS "macclassic"#elif defined(__VMS)# define LZO_OS_VMS 1# define LZO_INFO_OS "vms"#elif ((defined(__mips__) && defined(__R5900__)) || defined(__MIPS_PSX2__))# define LZO_OS_CONSOLE 1# define LZO_OS_CONSOLE_PS2 1# define LZO_INFO_OS "console"# define LZO_INFO_OS_CONSOLE "ps2"#elif (defined(__mips__) && defined(__psp__))# define LZO_OS_CONSOLE 1# define LZO_OS_CONSOLE_PSP 1# define LZO_INFO_OS "console"# define LZO_INFO_OS_CONSOLE "psp"#else# define LZO_OS_POSIX 1# define LZO_INFO_OS "posix"#endif#if (LZO_OS_POSIX)# if defined(_AIX) || defined(__AIX__) || defined(__aix__)# define LZO_OS_POSIX_AIX 1# define LZO_INFO_OS_POSIX "aix"# elif defined(__FreeBSD__)# define LZO_OS_POSIX_FREEBSD 1# define LZO_INFO_OS_POSIX "freebsd"# elif defined(__hpux__) || defined(__hpux)# define LZO_OS_POSIX_HPUX 1# define LZO_INFO_OS_POSIX "hpux"# elif defined(__INTERIX)# define LZO_OS_POSIX_INTERIX 1# define LZO_INFO_OS_POSIX "interix"# elif defined(__IRIX__) || defined(__irix__)# define LZO_OS_POSIX_IRIX 1# define LZO_INFO_OS_POSIX "irix"# elif defined(__linux__) || defined(__linux)# define LZO_OS_POSIX_LINUX 1# define LZO_INFO_OS_POSIX "linux"# elif defined(__APPLE__) || defined(__MACOS__)# define LZO_OS_POSIX_MACOSX 1# define LZO_INFO_OS_POSIX "macosx"# elif defined(__NetBSD__)# define LZO_OS_POSIX_NETBSD 1# define LZO_INFO_OS_POSIX "netbsd"# elif defined(__OpenBSD__)# define LZO_OS_POSIX_OPENBSD 1# define LZO_INFO_OS_POSIX "openbsd"# elif defined(__osf__)# define LZO_OS_POSIX_OSF 1# define LZO_INFO_OS_POSIX "osf"# elif defined(__solaris__) || defined(__sun)# if defined(__SVR4) || defined(__svr4__)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -