From 34c7bf187f8a33ce3d240cc9da79d91fb51cc1a7 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <vital.had@gmail.com>
Date: Sun, 14 Apr 2024 06:37:53 +0800
Subject: [PATCH] module.m: no AssociatedObject on ppc

---
 pyobjc-core/Modules/objc/module.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git pyobjc-core/Modules/objc/module.m pyobjc-core/Modules/objc/module.m
index ba50e4b46..b1f0e96fc 100644
--- pyobjc-core/Modules/objc/module.m
+++ pyobjc-core/Modules/objc/module.m
@@ -1499,7 +1499,7 @@ typestr2typestr(PyObject* args)
     return result;
 }
 
-#if PyObjC_BUILD_RELEASE >= 1006
+#if PyObjC_BUILD_RELEASE >= 1006 && !defined(__ppc__)
 /* Associated Object support. Functionality is available on OSX 10.6 or later.
  */
 
@@ -1943,7 +1943,7 @@ static PyMethodDef mod_methods[] = {
      .ml_doc   = "_typestr2typestr(value)\n" CLINIC_SEP
                "\nReturns the standard Objective-C version for a PyObjC typestr"},
 
-#if PyObjC_BUILD_RELEASE >= 1006
+#if PyObjC_BUILD_RELEASE >= 1006 && !defined(__ppc__)
 
     {.ml_name  = "setAssociatedObject",
      .ml_meth  = (PyCFunction)PyObjC_setAssociatedObject,
@@ -2345,7 +2345,7 @@ PyObject* __attribute__((__visibility__("default"))) PyInit__objc(void)
 
     PyObjCPointerWrapper_Init();
 
-#if PyObjC_BUILD_RELEASE >= 1006
+#if PyObjC_BUILD_RELEASE >= 1006 && !defined(__ppc__)
 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
     if (objc_setAssociatedObject != NULL) {
 #endif /* MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 */
