]> 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:41:11 +0000 (15:41 -0400)
committerNed Deily <nad@python.org>
Thu, 20 Oct 2016 19:41:11 +0000 (15:41 -0400)
Patch by Vajrasky Kok.

Modules/_ctypes/libffi_osx/ffi.c

index bf420936dbd235eb93062e957433ee688caafe52..8cd2a78be6f407c3f410de67958eaf46b6643c12 100644 (file)
@@ -101,7 +101,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(
@@ -124,7 +124,7 @@ struct_on_stack(
        }
 }
 
-#endif // defined(X86_DARWIN)
+#endif // defined(X86_DARWIN) && !defined __x86_64__
 
 // Arguments' ffi_type->alignment must be nonzero.
 ffi_status