Skip to content

Commit 44f7653

Browse files
committedJan 13, 2025
miniz: Disable unused APIs
We only need inflate, no need for deflate or Zlib compatibility.
1 parent 96a8c7d commit 44f7653

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

Diff for: ‎jbmc/src/miniz/miniz.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@
126126
/* If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or */
127127
/* get/set file times, and the C run-time funcs that get/set times won't be called. */
128128
/* The current downside is the times written to your archives will be from 1979. */
129-
/*#define MINIZ_NO_TIME */
129+
#define MINIZ_NO_TIME
130130

131131
/* Define MINIZ_NO_DEFLATE_APIS to disable all compression API's. */
132-
/*#define MINIZ_NO_DEFLATE_APIS */
132+
#define MINIZ_NO_DEFLATE_APIS
133133

134134
/* Define MINIZ_NO_INFLATE_APIS to disable all decompression API's. */
135135
/*#define MINIZ_NO_INFLATE_APIS */
@@ -138,13 +138,13 @@
138138
/*#define MINIZ_NO_ARCHIVE_APIS */
139139

140140
/* Define MINIZ_NO_ARCHIVE_WRITING_APIS to disable all writing related ZIP archive API's. */
141-
/*#define MINIZ_NO_ARCHIVE_WRITING_APIS */
141+
#define MINIZ_NO_ARCHIVE_WRITING_APIS
142142

143143
/* Define MINIZ_NO_ZLIB_APIS to remove all ZLIB-style compression/decompression API's. */
144-
/*#define MINIZ_NO_ZLIB_APIS */
144+
#define MINIZ_NO_ZLIB_APIS
145145

146146
/* Define MINIZ_NO_ZLIB_COMPATIBLE_NAME to disable zlib names, to prevent conflicts against stock zlib. */
147-
/*#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES */
147+
#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES
148148

149149
/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc.
150150
Note if MINIZ_NO_MALLOC is defined then the user must always provide custom user alloc/free/realloc

0 commit comments

Comments
 (0)
Please sign in to comment.