From 11d1af755f89f0a89e7eb20b4898eef2e9fda013 Mon Sep 17 00:00:00 2001 From: Chuvi Date: Wed, 28 Dec 2016 11:10:02 +0300 Subject: [PATCH] Fixed "error C4996: 'GetVersionExA': was declared deprecated" using a crutch. --- rehlds/engine/sys_dll2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rehlds/engine/sys_dll2.cpp b/rehlds/engine/sys_dll2.cpp index 1d05e08..d7c5fcd 100644 --- a/rehlds/engine/sys_dll2.cpp +++ b/rehlds/engine/sys_dll2.cpp @@ -187,6 +187,8 @@ NOXREF int Sys_IsWin98(void) } #ifdef _WIN32 +#pragma warning( push ) +#pragma warning( disable : 4996 ) NOXREF void Sys_CheckOSVersion(void) { struct _OSVERSIONINFOA verInfo; @@ -210,6 +212,7 @@ NOXREF void Sys_CheckOSVersion(void) } } } +#pragma warning ( pop ) #endif // _WIN32 void Sys_Init(void)