From: Matt Corallo Date: Mon, 14 Jun 2021 19:51:41 +0000 (+0000) Subject: Support OSX (ie builds where int64_t is not an alias for jlong) X-Git-Tag: v0.0.98.2~9 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b1216b13577d42952013c14c88c1155eb6c6499f;p=ldk-java Support OSX (ie builds where int64_t is not an alias for jlong) --- 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