From 36deb0a315c10bc3930e7a9b7518da9e7fe620eb Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 20 Nov 2009 02:51:10 +0000 Subject: [PATCH] Fix warning on new gcc for checking value or truth of undefined _WIN32 and MIPS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23670 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libtremor/os.h | 2 +- firmware/thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/codecs/libtremor/os.h b/apps/codecs/libtremor/os.h index bb4b867e3d..bafcaedb62 100644 --- a/apps/codecs/libtremor/os.h +++ b/apps/codecs/libtremor/os.h @@ -25,7 +25,7 @@ # ifdef __GNUC__ # define STIN static inline -# elif _WIN32 +# elif defined(_WIN32) # define STIN static __inline__ # endif #else diff --git a/firmware/thread.c b/firmware/thread.c index a63641e12b..ceda09871e 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -927,7 +927,7 @@ static inline void core_sleep(void) : : "z"(&SBYCR-GBR) : "r1"); } -#elif CPU_MIPS == 32 +#elif defined(CPU_MIPS) && CPU_MIPS == 32 /*--------------------------------------------------------------------------- * Start the thread running and terminate it if it returns