Browse Source

fix build

Colin Davidson 2 years ago
parent
commit
e019673a18
2 changed files with 3 additions and 2 deletions
  1. 2 1
      build.bat
  2. 1 1
      src/threading.cpp

+ 2 - 1
build.bat

@@ -69,6 +69,7 @@ set compiler_includes= ^
 	/Isrc\
 set libs= ^
 	kernel32.lib ^
+	Synchronization.lib ^
 	bin\llvm\windows\LLVM-C.lib
 
 set linker_flags= -incremental:no -opt:ref -subsystem:console
@@ -95,4 +96,4 @@ if %release_mode% EQU 0 odin run examples/demo
 
 del *.obj > NUL 2> NUL
 
-:end_of_build
+:end_of_build

+ 1 - 1
src/threading.cpp

@@ -529,7 +529,7 @@ gb_internal void tpool_wake_addr(Futex *addr) {
 
 gb_internal void tpool_wait_on_addr(Futex *addr, Footex val) {
 	for (;;) {
-		int ret = WaitOnAddress(addr, (void *)&val, sizeof(val), INFINITE);
+		WaitOnAddress(addr, (void *)&val, sizeof(val), INFINITE);
 		if (*addr != val) break;
 	}
 }