mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Correct foreign imports for portmidi on Windows
This commit is contained in:
Vendored
+8
-2
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user