Commits

Ronald Oussoren committed 2cc6211

merge with CPython repository

Comments (0)

Files changed (1)

pyobjc-core/libffi-src/powerpc/ppc-ffi_darwin.c

 #include <ppc-darwin.h>
 #include <architecture/ppc/mode_independent_asm.h>
 
+#if 0 /* branch below doesn't work with 10.4u SDK */
+
 #if defined(POWERPC_DARWIN)
 #include <libkern/OSCacheControl.h>	// for sys_icache_invalidate()
 #endif
 
+#else
+
+#pragma weak sys_icache_invalidate
+extern void sys_icache_invalidate(void *start, size_t len);
+
+#endif
+
 extern void ffi_closure_ASM(void);
 
 // The layout of a function descriptor.  A C function pointer really
 }
 
 #endif	/*	defined(__ppc64__)	*/
-#endif	/* __ppc__ || __ppc64__ */
+#endif	/* __ppc__ || __ppc64__ */