Handle calling conventions correctly

This commit is contained in:
Ginger Bill
2016-12-22 23:06:31 +00:00
parent 923b039cf6
commit d714bece47
19 changed files with 288 additions and 201 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
import (
import {
win32 "sys/windows.odin" when ODIN_OS == "windows";
"atomic.odin";
)
}
type (
type {
Semaphore struct {
handle win32.HANDLE;
}
@@ -14,7 +14,7 @@ type (
owner i32;
recursion i32;
}
)
}
proc current_thread_id() -> i32 {
return win32.GetCurrentThreadId() as i32;