From 02d6107c97b48888362e7c6a70dcac323c89d741 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 17 Dec 2023 21:23:58 +0100 Subject: ZipArchive: Update to the 4.6.9 release --- zip/ZipArchive/_platform.h | 49 ++++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 28 deletions(-) (limited to 'zip/ZipArchive/_platform.h') 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) -- cgit v1.2.3