Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_win32_config.h @ 5359:2fda9065d0f4
Win32: Borland C compatibility fixes.
Several false positive warnings silenced, notably W8012 "Comparing
signed and unsigned" (due to u_short values promoted to int), and
W8072 "Suspicious pointer arithmetic" (due to large type values added
to pointers).
With this patch, it's now again possible to compile nginx using bcc32,
with options we normally compile on win32 minus ipv6 and ssl.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:23 +0400 |
parents | 670ceaba03d8 |
children | 3d2d3e1cf427 |
comparison
equal
deleted
inserted
replaced
5358:670ceaba03d8 | 5359:2fda9065d0f4 |
---|---|
144 /* off_t is redefined by sys/types.h used by zlib.h */ | 144 /* off_t is redefined by sys/types.h used by zlib.h */ |
145 #define __TYPES_H_INCLUDED | 145 #define __TYPES_H_INCLUDED |
146 typedef int dev_t; | 146 typedef int dev_t; |
147 typedef unsigned int ino_t; | 147 typedef unsigned int ino_t; |
148 | 148 |
149 #elif __BORLANDC__ | |
150 | |
151 /* off_t is redefined by sys/types.h used by zlib.h */ | |
152 #define __TYPES_H | |
153 | |
154 typedef int dev_t; | |
155 typedef unsigned int ino_t; | |
156 | |
149 #endif | 157 #endif |
150 | 158 |
151 | 159 |
152 typedef int ssize_t; | 160 typedef int ssize_t; |
153 typedef uint32_t in_addr_t; | 161 typedef uint32_t in_addr_t; |