From: Brendan Hansen Date: Tue, 27 Jun 2023 14:47:00 +0000 (-0500) Subject: fixed: windows compilation, i think X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=a89ef16bb9de7440446618a2d3c76f7cafd914fa;p=onyx.git fixed: windows compilation, i think --- diff --git a/build.bat b/build.bat index c42a3340..455de157 100644 --- a/build.bat +++ b/build.bat @@ -22,7 +22,7 @@ del *.ilk > NUL 2> NUL del *.obj > NUL 2> NUL del misc\icon_resource.res -cl /MT /std:c17 /TC /I compiler/include /I shared/include /D_USRDLL /D_WINDLL runtime\onyx_runtime.c /link /DLL ws2_32.lib bcrypt.lib /OUT:onyx_runtime.dll +cl /MT /std:c17 /TC /I compiler/include /I shared/include /D_USRDLL /D_WINDLL runtime\onyx_runtime.c /link /DLL ws2_32.lib bcrypt.lib Synchronization.lib /OUT:onyx_runtime.dll del onyx_runtime.obj del onyx_runtime.lib diff --git a/shared/include/small_windows.h b/shared/include/small_windows.h index 2e7fa541..ea292338 100644 --- a/shared/include/small_windows.h +++ b/shared/include/small_windows.h @@ -464,6 +464,6 @@ GB_DLL_IMPORT int BCryptCloseAlgorithmProvider( unsigned long dwFlags ); -GB_DLL_IMPORT void WakeByAddressSingle(void * Address); -GB_DLL_IMPORT BOOL WaitOnAddress(volatile void * Address, void * compareAddress, size_t addressSize, DWORD milliseconds); +GB_DLL_IMPORT void WINAPI WakeByAddressSingle(void * Address); +GB_DLL_IMPORT BOOL WINAPI WaitOnAddress(volatile void * Address, void * compareAddress, size_t addressSize, DWORD milliseconds);