comparison src/os/win32/ngx_win32_config.h @ 785:b5b111cc28ed

win32 uint16_t definition
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Oct 2006 13:59:37 +0000
parents c73c5c58c619
children 887d8dec72dc
comparison
equal deleted inserted replaced
784:5a164305b960 785:b5b111cc28ed
92 92
93 93
94 #include <ngx_auto_config.h> 94 #include <ngx_auto_config.h>
95 95
96 96
97 #define ngx_inline __inline 97 #define ngx_inline __inline
98 #define ngx_cdecl __cdecl 98 #define ngx_cdecl __cdecl
99 99
100 100
101 #ifdef _MSC_VER 101 #ifdef _MSC_VER
102 typedef unsigned __int32 uint32_t; 102 typedef unsigned __int32 uint32_t;
103 typedef __int32 int32_t; 103 typedef __int32 int32_t;
104 #define ngx_libc_cdecl __cdecl 104 typedef unsigned __int16 uint16_t;
105 #define ngx_libc_cdecl __cdecl
105 106
106 #elif defined __WATCOMC__ 107 #elif defined __BORLANDC__
107 typedef unsigned int uint32_t; 108 typedef unsigned __int32 uint32_t;
108 typedef int int32_t; 109 typedef __int32 int32_t;
110 typedef unsigned __int16 uint16_t;
111 #define ngx_libc_cdecl __cdecl
112
113 #else /* __WATCOMC__ */
114 typedef unsigned int uint32_t;
115 typedef int int32_t;
116 typedef unsigned short int uint16_t;
109 #define ngx_libc_cdecl 117 #define ngx_libc_cdecl
110 118
111 #else /* __BORLANDC__ */
112 typedef unsigned int uint32_t;
113 typedef int int32_t;
114 #define ngx_libc_cdecl __cdecl
115 #endif 119 #endif
116 120
117 typedef __int64 int64_t; 121 typedef __int64 int64_t;
118 typedef unsigned __int64 uint64_t; 122 typedef unsigned __int64 uint64_t;
119 typedef u_int uintptr_t; 123 typedef u_int uintptr_t;
120 124
121 typedef int ssize_t; 125 typedef int ssize_t;
122 typedef __int64 off_t; 126 typedef __int64 off_t;
123 typedef uint32_t in_addr_t; 127 typedef uint32_t in_addr_t;
124 typedef u_short in_port_t; 128 typedef u_short in_port_t;
125 typedef int sig_atomic_t; 129 typedef int sig_atomic_t;
126 130
127 131
128 #define NGX_PTR_SIZE 4 132 #define NGX_PTR_SIZE 4
129 #define NGX_SIZE_T_LEN sizeof("-2147483648") - 1 133 #define NGX_SIZE_T_LEN sizeof("-2147483648") - 1
130 #define NGX_MAX_SIZE_T_VALUE 2147483647 134 #define NGX_MAX_SIZE_T_VALUE 2147483647