We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e4619b commit de2dd65Copy full SHA for de2dd65
Sources/SWBUtil/Library.swift
@@ -43,7 +43,7 @@ public enum Library: Sendable {
43
#else
44
let flags = RTLD_LAZY
45
#endif
46
- guard let handle = path.withPlatformString({ dlopen($0, flags) }) else {
+ guard let handle = path.withPlatformString({ (p: UnsafePointer<CChar>) in dlopen(p, flags) }) else {
47
#if os(Android)
48
throw LibraryOpenError(message: String(cString: dlerror()!))
49
0 commit comments