summaryrefslogtreecommitdiff
path: root/zip/ZipArchive/_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'zip/ZipArchive/_platform.h')
-rw-r--r--zip/ZipArchive/_platform.h49
1 files changed, 21 insertions, 28 deletions
diff --git a/zip/ZipArchive/_platform.h b/zip/ZipArchive/_platform.h
index aae7c52..c8ac192 100644
--- a/zip/ZipArchive/_platform.h
+++ b/zip/ZipArchive/_platform.h
@@ -1,6 +1,6 @@
////////////////////////////////////////////////////////////////////////////////
-// This source file is part of the ZipArchive library source distribution and
-// is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz
+// This source file is part of the ZipArchive Library Open Source distribution
+// and is Copyrighted 2000 - 2022 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
@@ -9,7 +9,7 @@
//
// For the licensing details refer to the License.txt file.
//
-// Web Site: http://www.artpol-software.com
+// Web Site: https://www.artpol-software.com
////////////////////////////////////////////////////////////////////////////////
/**
@@ -28,49 +28,42 @@
/************ Feel free to adjust the definitions in the following block ************/
/************************************ BLOCK START ***********************************/
-//#define ZIP_ARCHIVE_MFC
-//#define ZIP_ARCHIVE_LNX
+//#define _ZIP_IMPL_MFC
+//#define _ZIP_SYSTEM_LINUX
// simplified endianess detection
#ifdef __APPLE__
- #ifdef __LITTLE_ENDIAN__
- #define ZIP_ARCHIVE_LITTLE_ENDIAN
+ #if __BIG_ENDIAN__ == 1
+ #define _ZIP_BIG_ENDIAN
#endif
-#else
- #define ZIP_ARCHIVE_LITTLE_ENDIAN
#endif
/************************************* BLOCK END ***********************************/
/********* The contents below this line are not intended for modification **********/
-#ifndef ZIP_ARCHIVE_MFC
- #define ZIP_ARCHIVE_STL
-#else
- #ifdef ZIP_ARCHIVE_STL
- #undef ZIP_ARCHIVE_STL
- #endif
-#endif
-
-#ifndef ZIP_ARCHIVE_LNX
- #define ZIP_ARCHIVE_WIN
+#ifndef _ZIP_IMPL_MFC
+ #define _ZIP_IMPL_STL
#else
- #ifdef ZIP_ARCHIVE_WIN
- #undef ZIP_ARCHIVE_WIN
+ #ifdef _ZIP_IMPL_STL
+ #undef _ZIP_IMPL_STL
#endif
#endif
-#ifndef ZIP_ARCHIVE_LITTLE_ENDIAN
- #define ZIP_ARCHIVE_BIG_ENDIAN
+#ifndef _ZIP_SYSTEM_LINUX
+ #define _ZIP_SYSTEM_WIN
#else
- #ifdef ZIP_ARCHIVE_BIG_ENDIAN
- #undef ZIP_ARCHIVE_BIG_ENDIAN
+ #ifdef _ZIP_SYSTEM_WIN
+ #undef _ZIP_SYSTEM_WIN
#endif
#endif
-#if defined (ZIP_ARCHIVE_LNX) && defined (ZIP_ARCHIVE_MFC)
- #undef ZIP_ARCHIVE_MFC
- #define ZIP_ARCHIVE_STL
+#if defined (_ZIP_SYSTEM_LINUX) && defined (_ZIP_IMPL_MFC)
+ #undef _ZIP_IMPL_MFC
+ #define _ZIP_IMPL_STL
#error Using MFC under a non-Windows platform is not supported
#endif
+#define ZIPARCHIVE_VERSION "4.6.9"
+#define ZIPARCHIVE_VERSION_NUM 0x00040609
+
#endif // !defined(ZIPARCHIVE_PLATFORM_DOT_H)