--- src/osx/utils_osx.cpp.orig	2020-05-02 22:03:18.000000000 +0800
+++ src/osx/utils_osx.cpp	2023-02-23 19:30:16.000000000 +0800
@@ -71,7 +71,7 @@
 {
     int theDepth = 0;
     
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 && !defined(__ppc__)
     if ( UMAGetSystemVersion() >= 0x1060 ) 
     {
         CGDisplayModeRef currentMode = CGDisplayCopyDisplayMode(kCGDirectMainDisplay);
@@ -94,7 +94,7 @@
     else
 #endif
     {
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 || (MAC_OS_X_VERSION_MIN_REQUIRED == 1060 && defined __ppc__)
         theDepth = (int) CGDisplayBitsPerPixel(CGMainDisplayID());
 #endif
     }

--- src/osx/webview_webkit.mm.orig	2020-05-02 22:03:18.000000000 +0800
+++ src/osx/webview_webkit.mm	2023-02-23 19:44:37.000000000 +0800
@@ -1123,7 +1123,7 @@
 
             case NSURLErrorUserAuthenticationRequired:
             case NSURLErrorSecureConnectionFailed:
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 && !defined(__ppc__)
             case NSURLErrorClientCertificateRequired:
 #endif
                 *out = wxWEBVIEW_NAV_ERR_AUTH;

--- src/osx/carbon/dcscreen.cpp.orig	2020-05-02 22:03:18.000000000 +0800
+++ src/osx/carbon/dcscreen.cpp	2023-02-23 20:10:50.000000000 +0800
@@ -90,7 +90,7 @@
 
     CGImageRef image = NULL;
     
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 && !defined(__ppc__)
     if ( UMAGetSystemVersion() >= 0x1060)
     {
         image = CGDisplayCreateImage(kCGDirectMainDisplay);
