Commit b8f30c021bd4a96765b84744939eece23c432478

Ozkan Sezer 2022-07-12T00:55:00

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

diff --git a/include/SDL_endian.h b/include/SDL_endian.h
index e1c6b5e..11ea6c6 100644
--- a/include/SDL_endian.h
+++ b/include/SDL_endian.h
@@ -39,7 +39,7 @@
 static __inline__ void __attribute__((__always_inline__, __nodebug__))
 _m_prefetch(void *__P)
 {
-  __builtin_prefetch (__P, 0, 3 /* _MM_HINT_T0 */);
+  __builtin_prefetch(__P, 0, 3 /* _MM_HINT_T0 */);
 }
 #endif /* __PRFCHWINTRIN_H */
 #endif /* __clang__ */
@@ -78,7 +78,7 @@ _m_prefetch(void *__P)
 #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