summaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h63
1 files changed, 44 insertions, 19 deletions
diff --git a/zconf.h b/zconf.h
index a819c8b..92fdbbc 100644
--- a/zconf.h
+++ b/zconf.h
@@ -28,14 +28,24 @@
28#if defined(MSDOS) && !defined(__32BIT__) 28#if defined(MSDOS) && !defined(__32BIT__)
29# define MAXSEG_64K 29# define MAXSEG_64K
30#endif 30#endif
31#ifdef MSDOS
32# define UNALIGNED_OK
33#endif
34
31#ifndef STDC 35#ifndef STDC
32# if defined(MSDOS) || defined(__STDC__) || defined(__cplusplus) 36# if defined(MSDOS) || defined(__STDC__) || defined(__cplusplus)
33# define STDC 37# define STDC
34# endif 38# endif
35#endif 39#endif
36 40
37#if !defined(STDC) && !defined(const) 41#ifndef STDC
38# define const 42# ifndef const
43# define const
44# endif
45#endif
46
47#ifdef __MWERKS__ /* Metrowerks CodeWarrior declares fileno() in unix.h */
48# include <unix.h>
39#endif 49#endif
40 50
41/* Maximum value for memLevel in deflateInit2 */ 51/* Maximum value for memLevel in deflateInit2 */
@@ -67,29 +77,44 @@
67 77
68 /* Type declarations */ 78 /* Type declarations */
69 79
70#ifndef __P /* function prototypes */ 80#ifndef OF /* function prototypes */
71# ifdef STDC 81# ifdef STDC
72# define __P(args) args 82# define OF(args) args
73# else 83# else
74# define __P(args) () 84# define OF(args) ()
75# endif 85# endif
76#endif 86#endif
77 87
78#ifndef Byte 88#if defined(M_I86SM) || defined(M_I86MM) /* model independent MSC functions */
79 typedef unsigned char Byte; /* 8 bits */ 89# define zstrcpy _fstrcpy
80#endif 90# define zstrcat _fstrcat
81#ifndef uInt 91# define zstrlen _fstrlen
82 typedef unsigned int uInt; /* 16 bits or more */ 92# define zstrcmp _fstrcmp
93# define FAR __far
94#else
95# define zstrcpy strcpy
96# define zstrcat strcat
97# define zstrlen strlen
98# define zstrcmp strcmp
99# define FAR
83#endif 100#endif
84#ifndef uLong 101
85 typedef unsigned long uLong; /* 32 bits or more */ 102typedef unsigned char Byte; /* 8 bits */
86#endif 103typedef unsigned int uInt; /* 16 bits or more */
87#ifndef voidp 104typedef unsigned long uLong; /* 32 bits or more */
88# ifdef STDC 105
89 typedef void *voidp; 106typedef Byte FAR Bytef;
90# else 107typedef char FAR charf;
91 typedef Byte *voidp; 108typedef int FAR intf;
92# endif 109typedef uInt FAR uIntf;
110typedef uLong FAR uLongf;
111
112#ifdef STDC
113 typedef void FAR *voidp;
114 typedef void *voidnp;
115#else
116 typedef Byte FAR *voidp;
117 typedef Byte *voidnp;
93#endif 118#endif
94 119
95#endif /* _ZCONF_H */ 120#endif /* _ZCONF_H */