Mercurial > hg > nginx
annotate src/os/win32/ngx_win32_config.h @ 5360:3d2d3e1cf427
Win32: MinGW GCC compatibility.
Several warnings silenced, notably (ngx_socket_t) -1 is now checked
on socket operations instead of -1, as ngx_socket_t is unsigned on win32
and gcc complains on comparison.
With this patch, it's now possible to compile nginx using mingw gcc,
with options we normally compile on win32.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:28 +0400 |
parents | 2fda9065d0f4 |
children | 72e31d88defa |
rev | line source |
---|---|
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
1 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
2 /* |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
441
diff
changeset
|
3 * Copyright (C) Igor Sysoev |
4412 | 4 * Copyright (C) Nginx, Inc. |
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
5 */ |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
6 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
7 |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 #ifndef _NGX_WIN32_CONFIG_H_INCLUDED_ |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 #define _NGX_WIN32_CONFIG_H_INCLUDED_ |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
11 |
5360
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
12 #undef WIN32 |
563 | 13 #define WIN32 0x0400 |
4218
a10354495767
Recent SDKs allow to build IPV6 only for Windows XP or above.
Igor Sysoev <igor@sysoev.ru>
parents:
3672
diff
changeset
|
14 #define _WIN32_WINNT 0x0501 |
563 | 15 |
16 | |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
17 #define STRICT |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
18 #define WIN32_LEAN_AND_MEAN |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
19 |
1641
25e2db857b66
enable getenv() and gmtime() in msvc8
Igor Sysoev <igor@sysoev.ru>
parents:
1377
diff
changeset
|
20 /* enable getenv() and gmtime() in msvc8 */ |
25e2db857b66
enable getenv() and gmtime() in msvc8
Igor Sysoev <igor@sysoev.ru>
parents:
1377
diff
changeset
|
21 #define _CRT_SECURE_NO_WARNINGS |
4778
a48031f7a69c
Win32: fixed build with Visual Studio 2005 Express.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4572
diff
changeset
|
22 #define _CRT_SECURE_NO_DEPRECATE |
1641
25e2db857b66
enable getenv() and gmtime() in msvc8
Igor Sysoev <igor@sysoev.ru>
parents:
1377
diff
changeset
|
23 |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
24 /* |
4572
67653855682e
Fixed spelling in multiline C comments.
Ruslan Ermilov <ru@nginx.com>
parents:
4412
diff
changeset
|
25 * we need to include <windows.h> explicitly before <winsock2.h> because |
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
419
diff
changeset
|
26 * the warning 4201 is enabled in <windows.h> |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
27 */ |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
28 #include <windows.h> |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
29 |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
30 #ifdef _MSC_VER |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
31 #pragma warning(disable:4201) |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
32 #endif |
119
cd54bcbaf3b5
nginx-0.0.1-2003-07-21-01:15:59 import
Igor Sysoev <igor@sysoev.ru>
parents:
93
diff
changeset
|
33 |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
34 #include <winsock2.h> |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2387
diff
changeset
|
35 #include <ws2tcpip.h> /* ipv6 */ |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
36 #include <mswsock.h> |
461 | 37 #include <shellapi.h> |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
186
diff
changeset
|
38 #include <stddef.h> /* offsetof() */ |
5360
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
39 |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
40 #ifdef __GNUC__ |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
41 /* GCC MinGW's stdio.h includes sys/types.h */ |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
42 #define _OFF_T_ |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
43 #endif |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5359
diff
changeset
|
44 |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
45 #include <stdio.h> |
123
b75602822f64
nginx-0.0.1-2003-07-24-00:01:29 import
Igor Sysoev <igor@sysoev.ru>
parents:
119
diff
changeset
|
46 #include <stdlib.h> |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
47 #include <stdarg.h> |
3458
bdcae1a576e3
compare long file names in case-insensitive mode,
Igor Sysoev <igor@sysoev.ru>
parents:
2512
diff
changeset
|
48 #include <locale.h> |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
49 |
509 | 50 #ifdef __WATCOMC__ |
51 #define _TIME_T_DEFINED | |
52 typedef long time_t; | |
53 /* OpenWatcom defines time_t as "unsigned long" */ | |
54 #endif | |
55 | |
56 #include <time.h> /* localtime(), strftime() */ | |
57 | |
455 | 58 |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
59 #ifdef _MSC_VER |
455 | 60 |
61 /* the end of the precompiled headers */ | |
62 #pragma hdrstop | |
63 | |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
64 #pragma warning(default:4201) |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
65 |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
66 /* disable some "-W4" level warnings */ |
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
67 |
499 | 68 /* 'type cast': from function pointer to data pointer */ |
302
1526e7686b20
nginx-0.0.3-2004-04-01-10:21:13 import
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
69 #pragma warning(disable:4054) |
499 | 70 |
71 /* 'type cast': from data pointer to function pointer */ | |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
72 #pragma warning(disable:4055) |
363
f2755a2885c8
nginx-0.0.7-2004-06-21-23:22:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
302
diff
changeset
|
73 |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
74 /* unreferenced formal parameter */ |
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
75 #pragma warning(disable:4100) |
363
f2755a2885c8
nginx-0.0.7-2004-06-21-23:22:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
302
diff
changeset
|
76 |
501 | 77 /* FD_SET() and FD_CLR(): conditional expression is constant */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
282
diff
changeset
|
78 #pragma warning(disable:4127) |
363
f2755a2885c8
nginx-0.0.7-2004-06-21-23:22:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
302
diff
changeset
|
79 |
5120
7956af6b6a02
Win32: disabled MSVC warning about '\0' not fitting into array.
Valentin Bartenev <vbart@nginx.com>
parents:
4971
diff
changeset
|
80 /* array is too small to include a terminating null character */ |
7956af6b6a02
Win32: disabled MSVC warning about '\0' not fitting into array.
Valentin Bartenev <vbart@nginx.com>
parents:
4971
diff
changeset
|
81 #pragma warning(disable:4295) |
7956af6b6a02
Win32: disabled MSVC warning about '\0' not fitting into array.
Valentin Bartenev <vbart@nginx.com>
parents:
4971
diff
changeset
|
82 |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
280
diff
changeset
|
83 #endif |
186
c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
183
diff
changeset
|
84 |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
85 |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
86 #ifdef __WATCOMC__ |
499 | 87 |
88 /* symbol 'ngx_rbtree_min' has been defined, but not referenced */ | |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
89 #pragma disable_message(202) |
499 | 90 |
280
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
91 #endif |
7c7183b3ea8b
nginx-0.0.2-2004-03-05-11:34:24 import
Igor Sysoev <igor@sysoev.ru>
parents:
279
diff
changeset
|
92 |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
93 |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
94 #ifdef __BORLANDC__ |
499 | 95 |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
96 /* the end of the precompiled headers */ |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
97 #pragma hdrstop |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
98 |
499 | 99 /* functions containing (for|while|some if) are not expanded inline */ |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
100 #pragma warn -8027 |
499 | 101 |
102 /* unreferenced formal parameter */ | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
103 #pragma warn -8057 |
499 | 104 |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
105 #endif |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
106 |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
294
diff
changeset
|
107 |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
108 #include <ngx_auto_config.h> |
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
109 |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
110 |
785 | 111 #define ngx_inline __inline |
112 #define ngx_cdecl __cdecl | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
113 |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
114 |
279
b79f021a644a
nginx-0.0.2-2004-03-04-19:34:23 import
Igor Sysoev <igor@sysoev.ru>
parents:
278
diff
changeset
|
115 #ifdef _MSC_VER |
785 | 116 typedef unsigned __int32 uint32_t; |
117 typedef __int32 int32_t; | |
118 typedef unsigned __int16 uint16_t; | |
119 #define ngx_libc_cdecl __cdecl | |
499 | 120 |
785 | 121 #elif defined __BORLANDC__ |
122 typedef unsigned __int32 uint32_t; | |
123 typedef __int32 int32_t; | |
124 typedef unsigned __int16 uint16_t; | |
125 #define ngx_libc_cdecl __cdecl | |
2147
c99db89ebf35
fix building by bcc broken in r2143
Igor Sysoev <igor@sysoev.ru>
parents:
1641
diff
changeset
|
126 #define _strnicmp strnicmp |
785 | 127 |
128 #else /* __WATCOMC__ */ | |
129 typedef unsigned int uint32_t; | |
130 typedef int int32_t; | |
131 typedef unsigned short int uint16_t; | |
503 | 132 #define ngx_libc_cdecl |
133 | |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
134 #endif |
278
0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
135 |
785 | 136 typedef __int64 int64_t; |
137 typedef unsigned __int64 uint64_t; | |
5358
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
138 |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
139 #ifndef __WATCOMC__ |
1354
f69d1aab6a0f
make 64-bit ngx_int_t on 64-bit platforms
Igor Sysoev <igor@sysoev.ru>
parents:
1025
diff
changeset
|
140 typedef int intptr_t; |
785 | 141 typedef u_int uintptr_t; |
5358
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
142 #endif |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
143 |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
144 |
4219
691133126226
Fixing conflict with SDK off_t definition.
Igor Sysoev <igor@sysoev.ru>
parents:
4218
diff
changeset
|
145 /* Windows defines off_t as long, which is 32-bit */ |
691133126226
Fixing conflict with SDK off_t definition.
Igor Sysoev <igor@sysoev.ru>
parents:
4218
diff
changeset
|
146 typedef __int64 off_t; |
691133126226
Fixing conflict with SDK off_t definition.
Igor Sysoev <igor@sysoev.ru>
parents:
4218
diff
changeset
|
147 #define _OFF_T_DEFINED |
691133126226
Fixing conflict with SDK off_t definition.
Igor Sysoev <igor@sysoev.ru>
parents:
4218
diff
changeset
|
148 |
5358
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
149 #ifdef __WATCOMC__ |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
150 |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
151 /* off_t is redefined by sys/types.h used by zlib.h */ |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
152 #define __TYPES_H_INCLUDED |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
153 typedef int dev_t; |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
154 typedef unsigned int ino_t; |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
155 |
5359
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
156 #elif __BORLANDC__ |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
157 |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
158 /* off_t is redefined by sys/types.h used by zlib.h */ |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
159 #define __TYPES_H |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
160 |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
161 typedef int dev_t; |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
162 typedef unsigned int ino_t; |
2fda9065d0f4
Win32: Borland C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5358
diff
changeset
|
163 |
5358
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
164 #endif |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
165 |
670ceaba03d8
Win32: Open Watcom C compatibility fixes.
Maxim Dounin <mdounin@mdounin.ru>
parents:
5262
diff
changeset
|
166 |
785 | 167 typedef int ssize_t; |
168 typedef uint32_t in_addr_t; | |
169 typedef u_short in_port_t; | |
170 typedef int sig_atomic_t; | |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
171 |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
172 |
613 | 173 #define NGX_PTR_SIZE 4 |
5262 | 174 #define NGX_SIZE_T_LEN (sizeof("-2147483648") - 1) |
1025 | 175 #define NGX_MAX_SIZE_T_VALUE 2147483647 |
5262 | 176 #define NGX_TIME_T_LEN (sizeof("-2147483648") - 1) |
477 | 177 #define NGX_TIME_T_SIZE 4 |
5262 | 178 #define NGX_OFF_T_LEN (sizeof("-9223372036854775807") - 1) |
477 | 179 #define NGX_MAX_OFF_T_VALUE 9223372036854775807 |
180 #define NGX_SIG_ATOMIC_T_SIZE 4 | |
181 | |
581 | 182 |
469 | 183 #define NGX_HAVE_LITTLE_ENDIAN 1 |
479 | 184 #define NGX_HAVE_NONALIGNED 1 |
469 | 185 |
186 #define NGX_THREADS 1 | |
371
780e93985b93
nginx-0.0.7-2004-06-28-20:05:02 import
Igor Sysoev <igor@sysoev.ru>
parents:
363
diff
changeset
|
187 |
461 | 188 |
189 #define NGX_WIN_NT 200000 | |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
190 |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
144
diff
changeset
|
191 |
1377
0d57c150115b
set default listen() backlog to 511 on all platforms except FreeBSD
Igor Sysoev <igor@sysoev.ru>
parents:
1354
diff
changeset
|
192 #define NGX_LISTEN_BACKLOG 511 |
0d57c150115b
set default listen() backlog to 511 on all platforms except FreeBSD
Igor Sysoev <igor@sysoev.ru>
parents:
1354
diff
changeset
|
193 |
0d57c150115b
set default listen() backlog to 511 on all platforms except FreeBSD
Igor Sysoev <igor@sysoev.ru>
parents:
1354
diff
changeset
|
194 |
469 | 195 #ifndef NGX_HAVE_INHERITED_NONBLOCK |
196 #define NGX_HAVE_INHERITED_NONBLOCK 1 | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
197 #endif |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
198 |
469 | 199 #ifndef NGX_HAVE_WIN32_TRANSMITPACKETS |
200 #define NGX_HAVE_WIN32_TRANSMITPACKETS 1 | |
201 #define NGX_HAVE_WIN32_TRANSMITFILE 0 | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
202 #endif |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
203 |
469 | 204 #ifndef NGX_HAVE_WIN32_TRANSMITFILE |
205 #define NGX_HAVE_WIN32_TRANSMITFILE 1 | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
206 #endif |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
207 |
469 | 208 #if (NGX_HAVE_WIN32_TRANSMITPACKETS) || (NGX_HAVE_WIN32_TRANSMITFILE) |
209 #define NGX_HAVE_SENDFILE 1 | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
210 #endif |
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
211 |
473 | 212 #ifndef NGX_HAVE_SO_SNDLOWAT |
213 /* setsockopt(SO_SNDLOWAT) returns error WSAENOPROTOOPT */ | |
214 #define NGX_HAVE_SO_SNDLOWAT 0 | |
215 #endif | |
216 | |
4971
eaf95350d75c
Implemented IPv6 support for URLs specified using domain names.
Ruslan Ermilov <ru@nginx.com>
parents:
4778
diff
changeset
|
217 #define NGX_HAVE_GETADDRINFO 1 |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
218 |
800 | 219 #define ngx_random rand |
4223
1b779cb69dc8
malloc() debugging on MacOSX.
Igor Sysoev <igor@sysoev.ru>
parents:
4219
diff
changeset
|
220 #define ngx_debug_init() |
800 | 221 |
222 | |
93
738fe44c70d5
nginx-0.0.1-2003-05-21-17:28:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
223 #endif /* _NGX_WIN32_CONFIG_H_INCLUDED_ */ |