mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
vendor: portmidi: simplify foreign import
This commit is contained in:
Vendored
+6
-2
@@ -7,7 +7,11 @@ package portmidi
|
||||
|
||||
import "core:c"
|
||||
|
||||
when ODIN_OS == .Windows { foreign import lib "portmidi_s.lib" }
|
||||
when ODIN_OS == .Windows {
|
||||
foreign import lib "portmidi_s.lib"
|
||||
} else {
|
||||
foreign import lib "system:portmidi"
|
||||
}
|
||||
|
||||
|
||||
Queue :: distinct rawptr
|
||||
@@ -118,4 +122,4 @@ foreign lib {
|
||||
state, returns .NoError if successfully set overflow state.
|
||||
*/
|
||||
SetOverflow :: proc(queue: Queue) -> Error ---
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user