Put optional symbols behind ifdefs (#800)
authorAlfred Wingate <parona@protonmail.com>
Fri, 20 Oct 2023 12:02:37 +0000 (15:02 +0300)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 12:02:37 +0000 (08:02 -0400)
Signed-off-by: Alfred Wingate <parona@protonmail.com>
libffi.map.in

index de8778ae40fb9c88398f1f96e978333699a8d141..08c50b22d201ad3988cf5657108d1cbade869aea 100644 (file)
@@ -33,7 +33,10 @@ LIBFFI_BASE_8.0 {
        ffi_raw_to_ptrarray;
        ffi_raw_size;
 
+#if !FFI_NATIVE_RAW_API
        ffi_java_raw_call;
+#endif
+
        ffi_java_ptrarray_to_raw;
        ffi_java_raw_to_ptrarray;
        ffi_java_raw_size;
@@ -62,8 +65,10 @@ LIBFFI_CLOSURE_8.0 {
        ffi_prep_closure_loc;
        ffi_prep_raw_closure;
        ffi_prep_raw_closure_loc;
+#if !FFI_NATIVE_RAW_API
        ffi_prep_java_raw_closure;
        ffi_prep_java_raw_closure_loc;
+#endif
 } LIBFFI_BASE_8.0;
 #endif