2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-06 03:55:32 +03:00

Fixed "error C4996: 'GetVersionExA': was declared deprecated" using a crutch.

This commit is contained in:
Chuvi 2016-12-28 11:10:02 +03:00
parent 9c59407c9a
commit 11d1af755f

View File

@ -187,6 +187,8 @@ NOXREF int Sys_IsWin98(void)
} }
#ifdef _WIN32 #ifdef _WIN32
#pragma warning( push )
#pragma warning( disable : 4996 )
NOXREF void Sys_CheckOSVersion(void) NOXREF void Sys_CheckOSVersion(void)
{ {
struct _OSVERSIONINFOA verInfo; struct _OSVERSIONINFOA verInfo;
@ -210,6 +212,7 @@ NOXREF void Sys_CheckOSVersion(void)
} }
} }
} }
#pragma warning ( pop )
#endif // _WIN32 #endif // _WIN32
void Sys_Init(void) void Sys_Init(void)