summaryrefslogtreecommitdiff
path: root/zip/ZipArchive/std_stl.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-08 11:04:43 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-08 11:04:43 +0200
commit16f738ecee689c6feb2acb7e4ef4d9bb4144ae7d (patch)
tree3d22f54f7298f81b18ed66d05a62fa8bfab359ab /zip/ZipArchive/std_stl.h
downloadtuxcmd-modules-16f738ecee689c6feb2acb7e4ef4d9bb4144ae7d.tar.xz
Diffstat (limited to 'zip/ZipArchive/std_stl.h')
-rw-r--r--zip/ZipArchive/std_stl.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/zip/ZipArchive/std_stl.h b/zip/ZipArchive/std_stl.h
new file mode 100644
index 0000000..c755d22
--- /dev/null
+++ b/zip/ZipArchive/std_stl.h
@@ -0,0 +1,126 @@
+////////////////////////////////////////////////////////////////////////////////
+// This source file is part of the ZipArchive library source distribution and
+// is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// For the licensing details refer to the License.txt file.
+//
+// Web Site: http://www.artpol-software.com
+////////////////////////////////////////////////////////////////////////////////
+
+#ifndef ZIPARCHIVE_STDAFX_DOT_H
+ #error Do not include this file directly. Include stdafx.h instead
+#endif
+
+#include "_features.h"
+
+#if _MSC_VER > 1000
+ // STL warnings
+ #pragma warning (disable : 4710) // 'function' : function not inlined
+ #pragma warning (disable : 4514) // unreferenced inline/local function has been removed
+ #pragma warning (disable : 4786) // 'identifier' : identifier was truncated to 'number' characters in the debug information
+ #pragma warning (disable : 4702) // unreachable code
+#endif
+
+#if defined (_UNICODE) && !defined (UNICODE)
+ #define UNICODE
+#endif
+#if defined (UNICODE) && !defined (_UNICODE)
+ #define _UNICODE
+#endif
+
+#ifndef _WIN32
+ #ifndef NULL
+ #define NULL 0
+ #endif
+
+ #include <ctype.h>
+ typedef int HFILE;
+ typedef void* HANDLE;
+ typedef unsigned long DWORD;
+ typedef long LONG;
+ typedef int ZBOOL; /* to avoid conflicts when using Objective-C under Mac */
+ typedef unsigned char BYTE;
+ typedef unsigned short WORD;
+ typedef unsigned int UINT;
+
+ #ifndef FALSE
+ #define FALSE (int)0
+ #endif
+
+ #ifndef TRUE
+ #define TRUE (int)1
+ #endif
+
+
+ typedef unsigned short WCHAR; // wc, 16-bit UNICODE character
+ typedef const WCHAR *LPCWSTR;
+ typedef const char *LPCSTR;
+ typedef WCHAR *LPWSTR;
+ typedef char *LPSTR;
+
+ #ifdef _UNICODE
+ typedef wchar_t TCHAR;
+ typedef LPCWSTR LPCTSTR;
+ typedef LPWSTR LPTSTR;
+ #define _T(x) L ## x
+ #else /* _UNICODE */ // r_winnt
+ typedef char TCHAR;
+ typedef LPCSTR LPCTSTR;
+ typedef LPSTR LPTSTR;
+ #ifdef _T
+ #undef _T
+ #endif
+ #define _T(x) x
+ #endif /* _UNICODE */ // r_winnt
+
+ typedef unsigned long long ULONGLONG;
+ typedef long long LONGLONG;
+ #define CP_ACP 0
+ #define CP_OEMCP 1
+
+ #ifndef _I64_MAX
+ #ifdef LLONG_MAX
+ #define _I64_MAX LLONG_MAX
+ #else
+ #define _I64_MAX LONG_LONG_MAX
+ #endif
+ #endif
+ #ifndef _UI64_MAX
+ #ifdef ULLONG_MAX
+ #define _UI64_MAX ULLONG_MAX
+ #else
+ #define _UI64_MAX ULONG_LONG_MAX
+ #endif
+ #endif
+ #define _lseeki64 lseek64
+#else
+ #include <TCHAR.H>
+ #include <windows.h>
+ #include <stddef.h>
+ #ifndef STRICT
+ #define STRICT
+ #endif
+ typedef BOOL ZBOOL;
+
+#endif // #ifndef _WIN32
+
+#ifndef ASSERT
+ #include <assert.h>
+ #define ASSERT(f) assert((f))
+#endif
+#ifndef VERIFY
+ #ifdef _DEBUG
+ #define VERIFY(x) ASSERT((x))
+ #else
+ #define VERIFY(x) x
+ #endif
+#endif
+
+#define ZIP_FILE_USIZE ULONGLONG
+#define ZIP_FILE_SIZE LONGLONG
+#define ZIP_FILE_SIZEMAX _I64_MAX