vendor: portmidi: simplify foreign import
This commit is contained in:
1 parent
3145935d6b
commit
d3f3528d1d
2 files changed
+9
-3
No files matched your search
Vendored
+3
-1
@@ -9,6 +9,8 @@ when ODIN_OS == .Windows {
|
||||
"system:Winmm.lib",
|
||||
"system:Advapi32.lib",
|
||||
}
|
||||
} else {
|
||||
foreign import lib "system:portmidi"
|
||||
}
|
||||
|
||||
#assert(size_of(b32) == size_of(c.int))
|
||||
@@ -519,4 +521,4 @@ foreign lib {
|
||||
WriteSysEx() writes a timestamped system-exclusive midi message.
|
||||
*/
|
||||
WriteSysEx :: proc(stream: Stream, whence: Timestamp, msg: cstring) -> Error ---
|
||||
}
|
||||
}
|
||||
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