mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 07:37:49 +08:00
Win32: MSVC 2013 compatibility.
Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
This commit is contained in:
parent
b20af091b7
commit
8f8bf842bc
@ -106,6 +106,7 @@ fi
|
|||||||
|
|
||||||
# precompiled headers
|
# precompiled headers
|
||||||
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
|
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
|
||||||
|
CORE_LINK="$NGX_OBJS/ngx_pch.obj"
|
||||||
NGX_PCH="$NGX_OBJS/ngx_config.pch"
|
NGX_PCH="$NGX_OBJS/ngx_config.pch"
|
||||||
NGX_BUILD_PCH="-Ycngx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
NGX_BUILD_PCH="-Ycngx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
||||||
NGX_USE_PCH="-Yungx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
NGX_USE_PCH="-Yungx_config.h -Fp$NGX_OBJS/ngx_config.pch"
|
||||||
|
@ -71,6 +71,10 @@ ngx_os_init(ngx_log_t *log)
|
|||||||
ngx_memzero(&osvi, sizeof(OSVERSIONINFOEX));
|
ngx_memzero(&osvi, sizeof(OSVERSIONINFOEX));
|
||||||
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(disable:4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
osviex = GetVersionEx((OSVERSIONINFO *) &osvi);
|
osviex = GetVersionEx((OSVERSIONINFO *) &osvi);
|
||||||
|
|
||||||
if (osviex == 0) {
|
if (osviex == 0) {
|
||||||
@ -82,6 +86,10 @@ ngx_os_init(ngx_log_t *log)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(default:4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows 3.1 Win32s 0xxxxx
|
* Windows 3.1 Win32s 0xxxxx
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user