]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Kill Z_ARG()
authorDaniel Axtens <dja@axtens.net>
Fri, 8 May 2015 06:09:09 +0000 (16:09 +1000)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 11 May 2015 09:08:01 +0000 (11:08 +0200)
Signed-off-by: Daniel Axtens <dja@axtens.net>
zconf.h.in
zlib.h

index 631a744c1ac16d33f43282b97d109c1c12fcc952..4fc4ac739163cec5d0153d45dcbb1a733f5f4fb1 100644 (file)
                         /* Type declarations */
 
 
-#ifndef Z_ARG /* function prototypes for stdarg */
-#  define Z_ARG(args)  args
-#endif
-
 #if defined(WINDOWS) || defined(WIN32)
    /* If building or using zlib as a DLL, define ZLIB_DLL.
     * This is not mandatory, but it offers a little performance increase.
diff --git a/zlib.h b/zlib.h
index 5488524ff1e09a98f81d4818d62bc0e9afa5e8ec..b8ef5f5a4d5baefc5a9f83363349b7fbb4c80d2d 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1343,7 +1343,7 @@ ZEXTERN int ZEXPORT gzwrite (gzFile file, void const *buf, unsigned len);
    error.
 */
 
-ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
+ZEXTERN int ZEXPORTVA gzprintf (gzFile file, const char *format, ...);
 /*
      Converts, formats, and writes the arguments to the compressed file under
    control of the format string, as in fprintf.  gzprintf returns the number of
@@ -1738,7 +1738,7 @@ ZEXTERN int            ZEXPORT deflateResetKeep (z_stream *);
 ZEXTERN gzFile         ZEXPORT gzopen_w (const wchar_t *path, const char *mode);
 #endif
 #ifndef Z_SOLO
-ZEXTERN int            ZEXPORTVA gzvprintf Z_ARG((gzFile file, const char *format, va_list va));
+ZEXTERN int            ZEXPORTVA gzvprintf (gzFile file, const char *format, va_list va);
 #endif
 
 #ifdef __cplusplus