Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/os_is64bit.c')
-rwxr-xr-xsrc/host/os_is64bit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/host/os_is64bit.c b/src/host/os_is64bit.c
index 2537c2e..a296981 100755
--- a/src/host/os_is64bit.c
+++ b/src/host/os_is64bit.c
@@ -6,6 +6,10 @@
#include "premake.h"
+#if PLATFORM_WINDOWS
+typedef BOOL(WINAPI* WowFuncSig)(HANDLE, PBOOL);
+#endif
+
int os_is64bit(lua_State* L)
{
#if PLATFORM_WINDOWS
@@ -20,7 +24,6 @@ int os_is64bit(lua_State* L)
// returns false, the platform might still be 64-bit, but more
// checking will need to be done on the Lua side of things.
#if PLATFORM_WINDOWS
- typedef BOOL(WINAPI* WowFuncSig)(HANDLE, PBOOL);
if (hKrnl32)
{
WowFuncSig func = (WowFuncSig)GetProcAddress(hKrnl32, "IsWow64Process");