From b1216b13577d42952013c14c88c1155eb6c6499f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 14 Jun 2021 19:51:41 +0000 Subject: [PATCH] Support OSX (ie builds where int64_t is not an alias for jlong) --- java_strings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java_strings.py b/java_strings.py index 624f46d5..25eec48e 100644 --- a/java_strings.py +++ b/java_strings.py @@ -86,7 +86,10 @@ class CommonBase { } """ - self.c_file_pfx = """#include \"org_ldk_impl_bindings.h\" + self.c_file_pfx = """#include +// On OSX jlong (ie long long) is not equivalent to int64_t, so we override here +#define int64_t jlong +#include \"org_ldk_impl_bindings.h\" #include #include #include -- 2.39.5