mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
vendor: portmidi: simplify foreign import
This commit is contained in:
Vendored
+2
@@ -9,6 +9,8 @@ when ODIN_OS == .Windows {
|
|||||||
"system:Winmm.lib",
|
"system:Winmm.lib",
|
||||||
"system:Advapi32.lib",
|
"system:Advapi32.lib",
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
foreign import lib "system:portmidi"
|
||||||
}
|
}
|
||||||
|
|
||||||
#assert(size_of(b32) == size_of(c.int))
|
#assert(size_of(b32) == size_of(c.int))
|
||||||
|
|||||||
Vendored
+5
-1
@@ -7,7 +7,11 @@ package portmidi
|
|||||||
|
|
||||||
import "core:c"
|
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
|
Queue :: distinct rawptr
|
||||||
|
|||||||
Reference in New Issue
Block a user