Browse Source

Fix endianness check for ppc on gcc

Bart van Strien 13 years ago
parent
commit
54e4d2da9a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/config.h

+ 2 - 1
src/common/config.h

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