Correct foreign imports for portmidi on Windows

This commit is contained in:
gingerBill
2021-11-20 19:27:34 +00:00
parent d424c84bf9
commit 446f1f6183
+8 -2
View File
@@ -3,7 +3,13 @@ package portmidi
import "core:c" import "core:c"
import "core:strings" import "core:strings"
when ODIN_OS == "windows" { foreign import lib "portmidi.lib" } when ODIN_OS == "windows" {
foreign import lib {
"portmidi_s.lib",
"system:Winmm.lib",
"system:Advapi32.lib",
}
}
#assert(size_of(b32) == size_of(c.int)) #assert(size_of(b32) == size_of(c.int))
@@ -140,7 +146,7 @@ foreign lib {
not be manipulated or freed. The pointer is guaranteed to be valid not be manipulated or freed. The pointer is guaranteed to be valid
between calls to Initialize() and Terminate(). between calls to Initialize() and Terminate().
*/ */
GetDeviceInfo :: proc(id: DeviceID) -> DeviceInfo --- GetDeviceInfo :: proc(id: DeviceID) -> ^DeviceInfo ---
/** /**
OpenInput() and OpenOutput() open devices. OpenInput() and OpenOutput() open devices.