Commits

Bart van Strien  committed 18e19a3 Draft

Fix endianness check for ppc on gcc

  • Participants
  • Parent commits be667c5

Comments (0)

Files changed (1)

File src/common/config.h

 #if defined(__i386__) || defined(__i386)
 #	define LOVE_LITTLE_ENDIAN 1
 #endif
-#if defined(__ppc__) || defined(__ppc)
+#if defined(__ppc__) || defined(__ppc) || defined(__powerpc__) || defined(__powerpc)
 #	define LOVE_BIG_ENDIAN 1
 #endif
 
 #	define _CRT_SECURE_NO_WARNINGS
 #endif
 
+// Preferably, and ironically, this macro should go unused.
 #ifndef LOVE_UNUSED
 #	define LOVE_UNUSED(x) (void)sizeof(x)
 #endif