From 7a877568f9250a1f6e2b77551878c06ce2f639bf Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <[EMAIL REDACTED]>
Date: Thu, 3 Nov 2022 11:22:14 +0800
Subject: [PATCH] Use correct macros for Darwin PPC
---
src/video/quartz/SDL_QuartzGL.m | 2 +-
src/video/quartz/SDL_QuartzVideo.h | 2 +-
src/video/quartz/SDL_QuartzVideo.m | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/video/quartz/SDL_QuartzGL.m b/src/video/quartz/SDL_QuartzGL.m
index d38dceb56..3ab0a2fa4 100644
--- a/src/video/quartz/SDL_QuartzGL.m
+++ b/src/video/quartz/SDL_QuartzGL.m
@@ -41,7 +41,7 @@
#define NSOpenGLPFASamples ((NSOpenGLPixelFormatAttribute) 56)
#endif
-#ifdef __powerpc__ /* we lost this in 10.6, which has no PPC support. */
+#ifdef __POWERPC__ /* we lost this in 10.7, which has no PPC support. */
@implementation NSOpenGLContext (CGLContextAccess)
- (CGLContextObj) cglContext;
{
diff --git a/src/video/quartz/SDL_QuartzVideo.h b/src/video/quartz/SDL_QuartzVideo.h
index 425896f91..408689c40 100644
--- a/src/video/quartz/SDL_QuartzVideo.h
+++ b/src/video/quartz/SDL_QuartzVideo.h
@@ -68,7 +68,7 @@
#include "../../events/SDL_events_c.h"
-#ifdef __powerpc__
+#ifdef __POWERPC__
/*
This is a workaround to directly access NSOpenGLContext's CGL context
We need this to check for errors NSOpenGLContext doesn't support
diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m
index 5350287aa..c1f5078ae 100644
--- a/src/video/quartz/SDL_QuartzVideo.m
+++ b/src/video/quartz/SDL_QuartzVideo.m
@@ -586,7 +586,7 @@ static void QZ_UnsetVideoMode (_THIS, BOOL to_desktop, BOOL save_gl)
QZ_TearDownOpenGL (this);
}
- #ifdef __powerpc__ /* we only use this for pre-10.3 compatibility. */
+ #ifdef __ppc__ /* we only use this for pre-10.3 compatibility. */
CGLSetFullScreen (NULL);
#endif
}