Skip to content

Commit d8d29bb

Browse files
committed
feat: update libzip to 1.11.4
1 parent e98367c commit d8d29bb

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

test-app/runtime/src/main/cpp/include/zip.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/*
55
zip.h -- exported declarations.
6-
Copyright (C) 1999-2021 Dieter Baron and Thomas Klausner
6+
Copyright (C) 1999-2024 Dieter Baron and Thomas Klausner
77
88
This file is part of libzip, a library to manipulate ZIP archives.
99
The authors can be contacted at <[email protected]>
@@ -34,6 +34,15 @@
3434
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535
*/
3636

37+
#if defined(__has_feature)
38+
#if !__has_feature(nullability)
39+
#define _Nullable
40+
#define _Nonnull
41+
#endif
42+
#else
43+
#define _Nullable
44+
#define _Nonnull
45+
#endif
3746

3847
#ifdef __cplusplus
3948
extern "C" {
@@ -154,6 +163,7 @@ extern "C" {
154163
#define ZIP_ER_CANCELLED 32 /* N Operation cancelled */
155164
#define ZIP_ER_DATA_LENGTH 33 /* N Unexpected length of data */
156165
#define ZIP_ER_NOT_ALLOWED 34 /* N Not allowed in torrentzip */
166+
#define ZIP_ER_TRUNCATED_ZIP 35 /* N Possibly truncated or corrupted zip archive */
157167

158168
/* type of system error value */
159169

@@ -256,7 +266,8 @@ enum zip_source_cmd {
256266
ZIP_SOURCE_BEGIN_WRITE_CLONING, /* like ZIP_SOURCE_BEGIN_WRITE, but keep part of original file */
257267
ZIP_SOURCE_ACCEPT_EMPTY, /* whether empty files are valid archives */
258268
ZIP_SOURCE_GET_FILE_ATTRIBUTES, /* get additional file attributes */
259-
ZIP_SOURCE_SUPPORTS_REOPEN /* allow reading from changed entry */
269+
ZIP_SOURCE_SUPPORTS_REOPEN, /* allow reading from changed entry */
270+
ZIP_SOURCE_GET_DOS_TIME /* get last modification time in DOS format */
260271
};
261272
typedef enum zip_source_cmd zip_source_cmd_t;
262273

test-app/runtime/src/main/cpp/include/zipconf.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
based on ../cmake-zipconf.h.in.
99
*/
1010

11-
#define LIBZIP_VERSION "1.10.1"
11+
#define LIBZIP_VERSION "1.11.4"
1212
#define LIBZIP_VERSION_MAJOR 1
13-
#define LIBZIP_VERSION_MINOR 10
14-
#define LIBZIP_VERSION_MICRO 1
13+
#define LIBZIP_VERSION_MINOR 11
14+
#define LIBZIP_VERSION_MICRO 4
1515

1616
#define ZIP_STATIC
1717

18-
19-
2018
#if !defined(__STDC_FORMAT_MACROS)
2119
#define __STDC_FORMAT_MACROS 1
2220
#endif
255 KB
Binary file not shown.
527 KB
Binary file not shown.
506 KB
Binary file not shown.
215 KB
Binary file not shown.

0 commit comments

Comments
 (0)