]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Improve source compatibility with zlib
authorVladislav Shchapov <vladislav@shchapov.ru>
Sun, 26 May 2024 13:57:14 +0000 (18:57 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 27 May 2024 10:55:09 +0000 (12:55 +0200)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
zlib.h.in

index 0924004455a1c70612afc91b8c87efe5cb64717b..b3ddb697c8f2c975d45980f08593f8141fceaf50 100644 (file)
--- a/zlib.h.in
+++ b/zlib.h.in
@@ -220,7 +220,7 @@ typedef gz_header *gz_headerp;
 #define Z_DEFLATED   8
 /* The deflate compression method (the only one supported in this version) */
 
-#define Z_NULL  NULL  /* for compatibility with zlib, was for initializing zalloc, zfree, opaque */
+#define Z_NULL  0  /* for compatibility with zlib, was for initializing zalloc, zfree, opaque */
 
 #define zlib_version zlibVersion()
 /* for compatibility with versions < 1.0.2 */