aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_win32_config.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-09-04 20:48:23 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-09-04 20:48:23 +0400
commit74b7a910137a99b5fb073e7c27858c019f96a8cc (patch)
tree00d2621de512d3cbae54c9e7a839e84df4825ba8 /src/os/win32/ngx_win32_config.h
parent5b3785232303f9c44543b20e1499c756462c53e6 (diff)
downloadnginx-74b7a910137a99b5fb073e7c27858c019f96a8cc.tar.gz
nginx-74b7a910137a99b5fb073e7c27858c019f96a8cc.zip
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.
Diffstat (limited to 'src/os/win32/ngx_win32_config.h')
-rw-r--r--src/os/win32/ngx_win32_config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
index 7face954f..193079230 100644
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -146,6 +146,14 @@ typedef __int64 off_t;
typedef int dev_t;
typedef unsigned int ino_t;
+#elif __BORLANDC__
+
+/* off_t is redefined by sys/types.h used by zlib.h */
+#define __TYPES_H
+
+typedef int dev_t;
+typedef unsigned int ino_t;
+
#endif