summaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h43
1 files changed, 24 insertions, 19 deletions
diff --git a/zconf.h b/zconf.h
index 92fdbbc..3898094 100644
--- a/zconf.h
+++ b/zconf.h
@@ -85,37 +85,42 @@
85# endif 85# endif
86#endif 86#endif
87 87
88#if defined(M_I86SM) || defined(M_I86MM) /* model independent MSC functions */ 88/* The following definitions for FAR are needed only for MSDOS mixed
89# define zstrcpy _fstrcpy 89 * model programming (small or medium model with some far allocations).
90# define zstrcat _fstrcat 90 * This was tested only with MSC; for other MSDOS compilers you may have
91# define zstrlen _fstrlen 91 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
92# define zstrcmp _fstrcmp 92 * just define FAR to be empty.
93# define FAR __far 93 */
94#else 94#if defined(M_I86SM) || defined(M_I86MM) /* MSC small or medium model */
95# define zstrcpy strcpy 95# ifdef _MSC_VER
96# define zstrcat strcat 96# define FAR __far
97# define zstrlen strlen 97# else
98# define zstrcmp strcmp 98# define FAR far
99# endif
100#endif
101#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
102# define FAR __far /* completely untested, just a best guess */
103#endif
104#ifndef FAR
99# define FAR 105# define FAR
100#endif 106#endif
101 107
102typedef unsigned char Byte; /* 8 bits */ 108typedef unsigned char Byte; /* 8 bits */
103typedef unsigned int uInt; /* 16 bits or more */ 109typedef unsigned int uInt; /* 16 bits or more */
104typedef unsigned long uLong; /* 32 bits or more */ 110typedef unsigned long uLong; /* 32 bits or more */
105 111
106typedef Byte FAR Bytef; 112typedef Byte FAR Bytef;
107typedef char FAR charf; 113typedef char FAR charf;
108typedef int FAR intf; 114typedef int FAR intf;
109typedef uInt FAR uIntf; 115typedef uInt FAR uIntf;
110typedef uLong FAR uLongf; 116typedef uLong FAR uLongf;
111 117
112#ifdef STDC 118#ifdef STDC
113 typedef void FAR *voidp; 119 typedef void FAR *voidpf;
114 typedef void *voidnp; 120 typedef void *voidp;
115#else 121#else
116 typedef Byte FAR *voidp; 122 typedef Byte FAR *voidpf;
117 typedef Byte *voidnp; 123 typedef Byte *voidp;
118#endif 124#endif
119 125
120#endif /* _ZCONF_H */ 126#endif /* _ZCONF_H */
121