diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-10-16 13:59:37 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-16 13:59:37 +0000 |
| commit | adfd14529b5ab28167d159680eda3be3c4f83957 (patch) | |
| tree | 12050de26ed1a78c53d1534bbc92545fd71e5245 | |
| parent | cab3b30e2cef12433a038db9de029666f6d196d1 (diff) | |
| download | nginx-adfd14529b5ab28167d159680eda3be3c4f83957.tar.gz nginx-adfd14529b5ab28167d159680eda3be3c4f83957.tar.bz2 | |
win32 uint16_t definition
Diffstat (limited to '')
| -rw-r--r-- | src/os/win32/ngx_win32_config.h | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h index 8df058610..eecf10589 100644 --- a/src/os/win32/ngx_win32_config.h +++ b/src/os/win32/ngx_win32_config.h @@ -94,35 +94,39 @@ typedef long time_t; #include <ngx_auto_config.h> -#define ngx_inline __inline -#define ngx_cdecl __cdecl +#define ngx_inline __inline +#define ngx_cdecl __cdecl #ifdef _MSC_VER -typedef unsigned __int32 uint32_t; -typedef __int32 int32_t; -#define ngx_libc_cdecl __cdecl - -#elif defined __WATCOMC__ -typedef unsigned int uint32_t; -typedef int int32_t; +typedef unsigned __int32 uint32_t; +typedef __int32 int32_t; +typedef unsigned __int16 uint16_t; +#define ngx_libc_cdecl __cdecl + +#elif defined __BORLANDC__ +typedef unsigned __int32 uint32_t; +typedef __int32 int32_t; +typedef unsigned __int16 uint16_t; +#define ngx_libc_cdecl __cdecl + +#else /* __WATCOMC__ */ +typedef unsigned int uint32_t; +typedef int int32_t; +typedef unsigned short int uint16_t; #define ngx_libc_cdecl -#else /* __BORLANDC__ */ -typedef unsigned int uint32_t; -typedef int int32_t; -#define ngx_libc_cdecl __cdecl #endif -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -typedef u_int uintptr_t; +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +typedef u_int uintptr_t; -typedef int ssize_t; -typedef __int64 off_t; -typedef uint32_t in_addr_t; -typedef u_short in_port_t; -typedef int sig_atomic_t; +typedef int ssize_t; +typedef __int64 off_t; +typedef uint32_t in_addr_t; +typedef u_short in_port_t; +typedef int sig_atomic_t; #define NGX_PTR_SIZE 4 |
