]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Assume WITH_GZFILEOP is defined when compatibility mode is enabled.
authorMika Lindqvist <postmaster@raasu.org>
Sun, 12 Nov 2017 20:07:35 +0000 (22:07 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 16 Feb 2018 14:48:06 +0000 (15:48 +0100)
zconf.h.in
zlib.h

index b15cb2560f1d7cfc2a6486f456101f4182875413..73b204b3302ec95457d20019ed6d26c12b1c5e15 100644 (file)
@@ -154,7 +154,7 @@ typedef void       *voidp;
 #  define Z_WANT64
 #endif
 
-#if !defined(SEEK_SET) && defined(WITH_GZFILEOP)
+#if !defined(SEEK_SET)
 #  define SEEK_SET        0       /* Seek from beginning of file.  */
 #  define SEEK_CUR        1       /* Seek from current position.  */
 #  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
diff --git a/zlib.h b/zlib.h
index 3e49ea32e3e345380294356d1b474771434bcd0b..3767bd0b9e85dec53f493cabe239ee2bf588a8e7 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1257,7 +1257,6 @@ ZEXTERN int ZEXPORT uncompress2 (unsigned char *dest,         size_t *destLen,
 */
 
 
-#ifdef WITH_GZFILEOP
                         /* gzip file access functions */
 
 /*
@@ -1637,7 +1636,6 @@ ZEXTERN void ZEXPORT gzclearerr(gzFile file);
    file that is being written concurrently.
 */
 
-#endif /* WITH_GZFILEOP */
 
                         /* checksum functions */
 
@@ -1736,7 +1734,6 @@ ZEXTERN int ZEXPORT inflateBackInit_(z_stream *strm, int windowBits, unsigned ch
 #define inflateBackInit(strm, windowBits, window) \
                         inflateBackInit_((strm), (windowBits), (window), ZLIB_VERSION, (int)sizeof(z_stream))
 
-#ifdef WITH_GZFILEOP
 
 /* gzgetc() macro and its supporting function and exposed data structure.  Note
  * that the real internal state is much larger than the exposed structure.
@@ -1783,7 +1780,6 @@ ZEXTERN int ZEXPORT gzgetc_(gzFile file);  /* backward compatibility */
    ZEXTERN z_off_t ZEXPORT gztell(gzFile);
    ZEXTERN z_off_t ZEXPORT gzoffset(gzFile);
 #endif
-#endif /* WITH_GZFILEOP */
 
 
 /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
@@ -1820,12 +1816,10 @@ ZEXTERN unsigned long    ZEXPORT inflateCodesUsed (z_stream *);
 ZEXTERN int              ZEXPORT inflateResetKeep (z_stream *);
 ZEXTERN int              ZEXPORT deflateResetKeep (z_stream *);
 
-#ifdef WITH_GZFILEOP
-# if (defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW__))
+#if (defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW__))
     ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path, const char *mode);
-# endif
-ZEXTERN int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va);
 #endif
+ZEXTERN int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va);
 
 #ifdef __cplusplus
 }