comparison src/event/modules/ngx_iocp_module.c @ 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 d620f497c50f
children de7ec5eef6d2
comparison
equal deleted inserted replaced
5359:2fda9065d0f4 5360:3d2d3e1cf427
168 #if 1 168 #if 1
169 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ngx_cycle->log, 0, "timer"); 169 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ngx_cycle->log, 0, "timer");
170 #endif 170 #endif
171 } 171 }
172 172
173 #ifdef __WATCOMC__ 173 #if defined(__WATCOMC__) || defined(__GNUC__)
174 return 0; 174 return 0;
175 #endif 175 #endif
176 } 176 }
177 177
178 178