Mercurial > hg > nginx
comparison src/os/win32/ngx_win32_config.h @ 5358:670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Precompiled headers are disabled as they lead to internal compiler errors
with long configure lines. Couple of false positive warnings silenced.
Various win32 typedefs are adjusted to work with Open Watcom C 1.9 headers.
With this patch, it's now again possible to compile nginx using owc386,
with options we normally compile on win32 minus ipv6 and ssl.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:22 +0400 |
parents | 626f288fa5ed |
children | 2fda9065d0f4 |
comparison
equal
deleted
inserted
replaced
5357:659464c695b7 | 5358:670ceaba03d8 |
---|---|
126 | 126 |
127 #endif | 127 #endif |
128 | 128 |
129 typedef __int64 int64_t; | 129 typedef __int64 int64_t; |
130 typedef unsigned __int64 uint64_t; | 130 typedef unsigned __int64 uint64_t; |
131 | |
132 #ifndef __WATCOMC__ | |
131 typedef int intptr_t; | 133 typedef int intptr_t; |
132 typedef u_int uintptr_t; | 134 typedef u_int uintptr_t; |
135 #endif | |
136 | |
133 | 137 |
134 /* Windows defines off_t as long, which is 32-bit */ | 138 /* Windows defines off_t as long, which is 32-bit */ |
135 typedef __int64 off_t; | 139 typedef __int64 off_t; |
136 #define _OFF_T_DEFINED | 140 #define _OFF_T_DEFINED |
141 | |
142 #ifdef __WATCOMC__ | |
143 | |
144 /* off_t is redefined by sys/types.h used by zlib.h */ | |
145 #define __TYPES_H_INCLUDED | |
146 typedef int dev_t; | |
147 typedef unsigned int ino_t; | |
148 | |
149 #endif | |
150 | |
137 | 151 |
138 typedef int ssize_t; | 152 typedef int ssize_t; |
139 typedef uint32_t in_addr_t; | 153 typedef uint32_t in_addr_t; |
140 typedef u_short in_port_t; | 154 typedef u_short in_port_t; |
141 typedef int sig_atomic_t; | 155 typedef int sig_atomic_t; |