libusb cleanup

This commit is contained in:
Zachary Levy
2026-04-21 21:01:15 -07:00
parent 6537d42d7e
commit a92ad64d22
8 changed files with 881 additions and 975 deletions
+873 -967
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -164,8 +164,6 @@
*/
package lmdb
foreign import lib "system:lmdb"
import "core:c"
import "core:fmt"
import "core:reflect"
@@ -273,10 +271,12 @@ panic_on_err :: #force_inline proc(error: Error, loc := #caller_location) {
_ :: c
when ODIN_OS == .Windows {
#panic("TODO: Compile windows .lib for lmdb")
mode_t :: c.int
filehandle_t :: rawptr
} else when ODIN_OS ==
.Linux || ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD {
foreign import lib "system:lmdb"
mode_t :: posix.mode_t
filehandle_t :: c.int
} else {