@@ -5,17 +5,12 @@
#include "runtime.h"
#include "go-type.h"
#include "go-panic.h"
-
-#ifdef USE_LIBFFI
-
#include "go-ffi.h"
-#if FFI_GO_CLOSURES
+#if defined(USE_LIBFFI) && defined(FFI_GO_CLOSURES)
#define USE_LIBFFI_CLOSURES
#endif
-#endif /* defined(USE_LIBFFI) */
-
/* Declare C functions with the names used to call from Go. */
void makeFuncFFI(const struct __go_func_type *ftyp, ffi_go_closure *impl)
@@ -6,11 +6,8 @@
#include "config.h"
#include "go-type.h"
-
-#ifdef USE_LIBFFI
-
#include "ffi.h"
+#ifdef USE_LIBFFI
void __go_func_to_cif (const struct __go_func_type *, _Bool, _Bool, ffi_cif *);
-
#endif