diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-14 01:42:03 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:17:31 -0700 |
commit | e9d5486e6635141f589e110fd789648aa08e9544 (patch) | |
tree | a78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /gzguts.h | |
parent | 5799c14c8526bf1aaa130c021982f831d155b46d (diff) | |
download | zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.gz zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.bz2 zlib-e9d5486e6635141f589e110fd789648aa08e9544.zip |
Remove K&R function definitions from zlib.
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -119,8 +119,8 @@ | |||
119 | 119 | ||
120 | /* gz* functions always use library allocation functions */ | 120 | /* gz* functions always use library allocation functions */ |
121 | #ifndef STDC | 121 | #ifndef STDC |
122 | extern voidp malloc OF((uInt size)); | 122 | extern voidp malloc(uInt size); |
123 | extern void free OF((voidpf ptr)); | 123 | extern void free(voidpf ptr); |
124 | #endif | 124 | #endif |
125 | 125 | ||
126 | /* get errno and strerror definition */ | 126 | /* get errno and strerror definition */ |
@@ -138,10 +138,10 @@ | |||
138 | 138 | ||
139 | /* provide prototypes for these when building zlib without LFS */ | 139 | /* provide prototypes for these when building zlib without LFS */ |
140 | #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 | 140 | #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 |
141 | ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | 141 | ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); |
142 | ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); | 142 | ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int); |
143 | ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); | 143 | ZEXTERN z_off64_t ZEXPORT gztell64(gzFile); |
144 | ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); | 144 | ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile); |
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | /* default memLevel */ | 147 | /* default memLevel */ |
@@ -203,9 +203,9 @@ typedef struct { | |||
203 | typedef gz_state FAR *gz_statep; | 203 | typedef gz_state FAR *gz_statep; |
204 | 204 | ||
205 | /* shared functions */ | 205 | /* shared functions */ |
206 | void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *)); | 206 | void ZLIB_INTERNAL gz_error(gz_statep, int, const char *); |
207 | #if defined UNDER_CE | 207 | #if defined UNDER_CE |
208 | char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error)); | 208 | char ZLIB_INTERNAL *gz_strwinerror(DWORD error); |
209 | #endif | 209 | #endif |
210 | 210 | ||
211 | /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t | 211 | /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t |
@@ -214,6 +214,6 @@ char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error)); | |||
214 | #ifdef INT_MAX | 214 | #ifdef INT_MAX |
215 | # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) | 215 | # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) |
216 | #else | 216 | #else |
217 | unsigned ZLIB_INTERNAL gz_intmax OF((void)); | 217 | unsigned ZLIB_INTERNAL gz_intmax(void); |
218 | # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) | 218 | # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) |
219 | #endif | 219 | #endif |