diff options
Diffstat (limited to 'zconf.h')
-rw-r--r-- | zconf.h | 43 |
1 files changed, 24 insertions, 19 deletions
@@ -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 | ||
102 | typedef unsigned char Byte; /* 8 bits */ | 108 | typedef unsigned char Byte; /* 8 bits */ |
103 | typedef unsigned int uInt; /* 16 bits or more */ | 109 | typedef unsigned int uInt; /* 16 bits or more */ |
104 | typedef unsigned long uLong; /* 32 bits or more */ | 110 | typedef unsigned long uLong; /* 32 bits or more */ |
105 | 111 | ||
106 | typedef Byte FAR Bytef; | 112 | typedef Byte FAR Bytef; |
107 | typedef char FAR charf; | 113 | typedef char FAR charf; |
108 | typedef int FAR intf; | 114 | typedef int FAR intf; |
109 | typedef uInt FAR uIntf; | 115 | typedef uInt FAR uIntf; |
110 | typedef uLong FAR uLongf; | 116 | typedef 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 | |||