diff src/os/win32/ngx_win32_config.h @ 461:a88a3e4e158f release-0.1.5

nginx-0.1.5-RELEASE import *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Nov 2004 14:07:14 +0000
parents 295d97d70c69
children 2ff194b74f1e
line wrap: on
line diff
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -8,8 +8,6 @@
 #define _NGX_WIN32_CONFIG_H_INCLUDED_
 
 
-#define WIN32       1
-
 #define STRICT
 #define WIN32_LEAN_AND_MEAN
 
@@ -25,6 +23,7 @@
 
 #include <winsock2.h>
 #include <mswsock.h>
+#include <shellapi.h>
 #include <stddef.h>    /* offsetof() */
 #include <stdio.h>
 #include <stdlib.h>
@@ -96,8 +95,10 @@
 
 #ifdef _MSC_VER
 typedef unsigned __int32  uint32_t;
+typedef __int32           int32_t;
 #else /* __WATCOMC__ */
 typedef unsigned int      uint32_t;
+typedef int               int32_t;
 #endif
 
 typedef __int64           int64_t;
@@ -115,15 +116,11 @@ typedef uint32_t          ngx_atomic_t;
 
 #define TIME_T_LEN        sizeof("-2147483648") - 1
 
-#define OFF_T_FMT         "%I64d"
-#define SIZE_T_FMT        "%d"
-#define SIZE_T_X_FMT      "%x"
-#define PID_T_FMT         "%d"
-#define TIME_T_FMT        "%lu"
-#define PTR_FMT           "%08X"
+
+#define NGX_WIN_NT        200000
 
 
-#define NGX_WIN_NT        200000
+#define NGX_THREADS       1
 
 
 #ifndef HAVE_INHERITED_NONBLOCK