Skip to content

Commit b1216b1

Browse files
TheBlueMattMatt
authored andcommitted
Support OSX (ie builds where int64_t is not an alias for jlong)
1 parent 1a84658 commit b1216b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java_strings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ class CommonBase {
8686
}
8787
"""
8888

89-
self.c_file_pfx = """#include \"org_ldk_impl_bindings.h\"
89+
self.c_file_pfx = """#include <jni.h>
90+
// On OSX jlong (ie long long) is not equivalent to int64_t, so we override here
91+
#define int64_t jlong
92+
#include \"org_ldk_impl_bindings.h\"
9093
#include <lightning.h>
9194
#include <string.h>
9295
#include <stdatomic.h>

0 commit comments

Comments
 (0)