diff options
Diffstat (limited to 'zutil.h')
-rw-r--r-- | zutil.h | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -8,13 +8,19 @@ | |||
8 | subject to change. Applications should only use zlib.h. | 8 | subject to change. Applications should only use zlib.h. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | /* $Id: zutil.h,v 1.8 1995/05/02 15:44:46 jloup Exp $ */ | 11 | /* $Id: zutil.h,v 1.9 1995/05/03 17:27:12 jloup Exp $ */ |
12 | 12 | ||
13 | #ifndef _Z_UTIL_H | 13 | #ifndef _Z_UTIL_H |
14 | #define _Z_UTIL_H | 14 | #define _Z_UTIL_H |
15 | 15 | ||
16 | #include "zlib.h" | 16 | #include "zlib.h" |
17 | 17 | ||
18 | #ifdef __GNUC__ | ||
19 | # define INLINE inline | ||
20 | #else | ||
21 | # define INLINE | ||
22 | #endif | ||
23 | |||
18 | #ifdef MSDOS | 24 | #ifdef MSDOS |
19 | # include <stddef.h> | 25 | # include <stddef.h> |
20 | # include <errno.h> | 26 | # include <errno.h> |
@@ -39,7 +45,7 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ | |||
39 | #define ERR_RETURN(strm,err) return (strm->msg=z_errmsg[1-err], err) | 45 | #define ERR_RETURN(strm,err) return (strm->msg=z_errmsg[1-err], err) |
40 | /* To be used only when the state is known to be valid */ | 46 | /* To be used only when the state is known to be valid */ |
41 | 47 | ||
42 | /* common constants */ | 48 | /* common constants */ |
43 | 49 | ||
44 | #define DEFLATED 8 | 50 | #define DEFLATED 8 |
45 | 51 | ||
@@ -62,7 +68,7 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ | |||
62 | #define MAX_MATCH 258 | 68 | #define MAX_MATCH 258 |
63 | /* The minimum and maximum match lengths */ | 69 | /* The minimum and maximum match lengths */ |
64 | 70 | ||
65 | /* target dependencies */ | 71 | /* target dependencies */ |
66 | 72 | ||
67 | #ifdef MSDOS | 73 | #ifdef MSDOS |
68 | # define OS_CODE 0x00 | 74 | # define OS_CODE 0x00 |
@@ -107,7 +113,7 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ | |||
107 | # define OS_CODE 0x0a | 113 | # define OS_CODE 0x0a |
108 | #endif | 114 | #endif |
109 | 115 | ||
110 | /* Common defaults */ | 116 | /* Common defaults */ |
111 | 117 | ||
112 | #ifndef OS_CODE | 118 | #ifndef OS_CODE |
113 | # define OS_CODE 0x03 /* assume Unix */ | 119 | # define OS_CODE 0x03 /* assume Unix */ |
@@ -126,7 +132,10 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ | |||
126 | # define zstrerror(errnum) "" | 132 | # define zstrerror(errnum) "" |
127 | #endif | 133 | #endif |
128 | 134 | ||
129 | #if defined(STDC) && !defined(HAVE_MEMCPY) | 135 | #if defined(pyr) && !defined(NO_MEMCPY) |
136 | # define NO_MEMCPY | ||
137 | #endif | ||
138 | #if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY) | ||
130 | # define HAVE_MEMCPY | 139 | # define HAVE_MEMCPY |
131 | #endif | 140 | #endif |
132 | #ifdef HAVE_MEMCPY | 141 | #ifdef HAVE_MEMCPY |