]> granicus.if.org Git - python/commitdiff
Issue #24381: Avoid unused function warning when building bundled macOS libffi.
authorNed Deily <nad@python.org>
Thu, 20 Oct 2016 19:38:27 +0000 (15:38 -0400)
committerNed Deily <nad@python.org>
Thu, 20 Oct 2016 19:38:27 +0000 (15:38 -0400)
Patch by Vajrasky Kok.

Modules/_ctypes/libffi_osx/ffi.c

index 96826b5c8e5bae6bee263fe878cecc843db30071..1776b795e2f83d8c997eabbde8348a5b3433835d 100644 (file)
@@ -102,7 +102,7 @@ initialize_aggregate(
 /* Perform machine independent ffi_cif preparation, then call
    machine dependent routine. */
 
-#if defined(X86_DARWIN)
+#if defined(X86_DARWIN) && !defined __x86_64__
 
 static inline bool
 struct_on_stack(
@@ -125,7 +125,7 @@ struct_on_stack(
        }
 }
 
-#endif // defined(X86_DARWIN)
+#endif // defined(X86_DARWIN) && !defined __x86_64__
 
 // Arguments' ffi_type->alignment must be nonzero.
 ffi_status