Skip to content

Commit dc2d8ff

Browse files
committed
Use c calling convention
1 parent 128c155 commit dc2d8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JNI/SwiftJNI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Dispatch
33

44
public var jni: JNI! // this gets set "OnLoad" so should always exist
55

6-
@_silgen_name("JNI_OnLoad")
6+
@_cdecl("JNI_OnLoad")
77
public func JNI_OnLoad(jvm: UnsafeMutablePointer<JavaVM>, reserved: UnsafeMutableRawPointer) -> JavaInt {
88
guard let localJNI = JNI(jvm: jvm) else {
99
fatalError("Couldn't initialise JNI")

0 commit comments

Comments
 (0)