From d3bc7cdc0aede8e2f81898a849d26b80a7b3482c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 12 Jul 2022 01:11:50 +0300
Subject: [PATCH] SDL_endian.h: check for __powerpc__ and __PPC__ in big endian
decision.
Also remove the _M_PPC check from there.
Reference issue: https://github.com/libsdl-org/SDL/issues/5907
---
include/SDL/SDL_endian.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/SDL/SDL_endian.h b/include/SDL/SDL_endian.h
index fb27d371e..24773f2aa 100644
--- a/include/SDL/SDL_endian.h
+++ b/include/SDL/SDL_endian.h
@@ -32,7 +32,7 @@ real SDL-1.2 available to you. */
#include <intrin.h>
#endif
-/* This is all lifted out of SDL2's zlib-licensed headers. */
+/* These are all lifted out of SDL2's zlib-licensed headers. */
#define SDL_LIL_ENDIAN 1234
#define SDL_BIG_ENDIAN 4321
@@ -60,7 +60,7 @@ real SDL-1.2 available to you. */
#if defined(__hppa__) || \
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
(defined(__MIPS__) && defined(__MIPSEB__)) || \
- defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
+ defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \
defined(__sparc__)
#define SDL_BYTEORDER SDL_BIG_ENDIAN
#else