Restore "version.lib" pragma for os.getversion
I'm not sure why this is still needed, since "version" has also been added to the `premake5.lua` config for Windows builds. But it's failing the CI builds, so restoring for now.
This commit is contained in:
parent
ac874b91a4
commit
19034686aa
@ -55,6 +55,8 @@ int os_getversion(lua_State* L)
|
|||||||
|
|
||||||
#if defined(PLATFORM_WINDOWS)
|
#if defined(PLATFORM_WINDOWS)
|
||||||
|
|
||||||
|
#pragma comment(lib, "version.lib")
|
||||||
|
|
||||||
int getKernelVersion(struct OsVersionInfo* info)
|
int getKernelVersion(struct OsVersionInfo* info)
|
||||||
{
|
{
|
||||||
DWORD size = GetFileVersionInfoSizeA("kernel32.dll", NULL);
|
DWORD size = GetFileVersionInfoSizeA("kernel32.dll", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user