add variadic macros support for msvc8

This commit is contained in:
Igor Sysoev 2009-04-19 16:25:02 +00:00
parent 1153aa6465
commit 694bdea2a9
2 changed files with 8 additions and 2 deletions

View File

@ -97,6 +97,12 @@ if [ $NGX_CC_NAME != msvc8 ]; then
fi
# MSVC 2005 supports C99 variadic macros
if [ $NGX_CC_NAME = msvc8 ]; then
have=NGX_HAVE_C99_VARIADIC_MACROS . auto/have
fi
# precompiled headers
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
NGX_PCH="$NGX_OBJS/ngx_config.pch"

View File

@ -57,8 +57,8 @@ ngx_event_accept(ngx_event_t *ev)
return;
}
ngx_log_error((err == NGX_ECONNABORTED) ? NGX_LOG_ERR:
NGX_LOG_ALERT,
ngx_log_error((ngx_uint_t) ((err == NGX_ECONNABORTED) ?
NGX_LOG_ERR : NGX_LOG_ALERT),
ev->log, err, "accept() failed");
if (err == NGX_ECONNABORTED) {