fixed: windows compilation, i think
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 27 Jun 2023 14:47:00 +0000 (09:47 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 27 Jun 2023 14:47:00 +0000 (09:47 -0500)
build.bat
shared/include/small_windows.h

index c42a3340c86afafeb2dfb1576ddbcfe45e3726bc..455de1572b416effe9cfc3bf7754a01b39594751 100644 (file)
--- 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
index 2e7fa5410cdbcde59a7e033bd25c4f18b06eb644..ea292338da460bcafd05124f4ed9f76cd63aa885 100644 (file)
@@ -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);