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

Merge pull request #291 from Chuvi-w/master

Fixed "error C4996: 'GetVersionExA': was declared deprecated" using a crutch.
This commit is contained in:
theAsmodai 2016-12-28 18:00:39 +03:00 committed by GitHub
commit c9f905b8fb

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)