Skip to content

Commit

Permalink
Restore "version.lib" pragma for os.getversion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
starkos committed Mar 31, 2020
1 parent ac874b9 commit 1903468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/host/os_getversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ int os_getversion(lua_State* L)

#if defined(PLATFORM_WINDOWS)

#pragma comment(lib, "version.lib")

int getKernelVersion(struct OsVersionInfo* info)
{
DWORD size = GetFileVersionInfoSizeA("kernel32.dll", NULL);
Expand Down

0 comments on commit 1903468

Please sign in to comment.