< prev index next >

src/java.base/share/native/libzip/zlib/gzguts.h

Print this page
@@ -21,21 +21,20 @@
   * or visit www.oracle.com if you need additional information or have any
   * questions.
   */
  
  /* gzguts.h -- zlib internal header definitions for gz* operations
-  * Copyright (C) 2004-2019 Mark Adler
+  * Copyright (C) 2004-2024 Mark Adler
   * For conditions of distribution and use, see copyright notice in zlib.h
   */
  
  #ifdef _LARGEFILE64_SOURCE
  #  ifndef _LARGEFILE_SOURCE
  #    define _LARGEFILE_SOURCE 1
  #  endif
- #  ifdef _FILE_OFFSET_BITS
- #    undef _FILE_OFFSET_BITS
- #  endif
+ #  undef _FILE_OFFSET_BITS
+ #  undef _TIME_BITS
  #endif
  
  #ifdef HAVE_HIDDEN
  #  define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
  #else

@@ -141,12 +140,12 @@
     define "local" for the non-static meaning of "static", for readability
     (compile with -Dlocal if your debugger can't find static symbols) */
  
  /* gz* functions always use library allocation functions */
  #ifndef STDC
-   extern voidp  malloc OF((uInt size));
-   extern void   free   OF((voidpf ptr));
+   extern voidp  malloc(uInt size);
+   extern void   free(voidpf ptr);
  #endif
  
  /* get errno and strerror definition */
  #if defined UNDER_CE
  #  include <windows.h>

@@ -160,14 +159,14 @@
  #  endif
  #endif
  
  /* provide prototypes for these when building zlib without LFS */
  #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
-     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
-     ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
-     ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
-     ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
+     ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
+     ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
+     ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
+     ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
  #endif
  
  /* default memLevel */
  #if MAX_MEM_LEVEL >= 8
  #  define DEF_MEM_LEVEL 8

@@ -225,19 +224,15 @@
      z_stream strm;          /* stream structure in-place (not a pointer) */
  } gz_state;
  typedef gz_state FAR *gz_statep;
  
  /* shared functions */
- void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));
+ void ZLIB_INTERNAL gz_error(gz_statep, int, const char *);
  #if defined UNDER_CE
- char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error));
+ char ZLIB_INTERNAL *gz_strwinerror(DWORD error);
  #endif
  
  /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
     value -- needed when comparing unsigned to z_off64_t, which is signed
     (possible z_off64_t types off_t, off64_t, and long are all signed) */
- #ifdef INT_MAX
- #  define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
- #else
- unsigned ZLIB_INTERNAL gz_intmax OF((void));
- #  define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
- #endif
+ unsigned ZLIB_INTERNAL gz_intmax(void);
+ #define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
< prev index next >