From 54e4d2da9aeae05fe1da72b8f92dfff52f9d1110 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 9 May 2012 15:30:30 +0200 Subject: [PATCH] Fix endianness check for ppc on gcc --- src/common/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/config.h b/src/common/config.h index b905961d0..2b9944a11 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -39,7 +39,7 @@ #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 @@ -48,6 +48,7 @@ # 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