From 368fff1c05a01fd8aa345249adc3292e9f37066a Mon Sep 17 00:00:00 2001 From: mar-na Date: Mon, 13 Oct 2014 15:12:07 +0200 Subject: [PATCH] Supported little endian for MIPS --- Foundation/include/Poco/Platform.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h index f23303ee6..4890d7a5a 100644 --- a/Foundation/include/Poco/Platform.h +++ b/Foundation/include/Poco/Platform.h @@ -151,7 +151,17 @@ #define POCO_ARCH_LITTLE_ENDIAN 1 #elif defined(__mips__) || defined(__mips) || defined(__MIPS__) || defined(_M_MRX000) #define POCO_ARCH POCO_ARCH_MIPS - #define POCO_ARCH_BIG_ENDIAN 1 + #if defined(POCO_OS_FAMILY_WINDOWS) + // Is this OK? Supports windows only little endian?? + #define POCO_ARCH_LITTLE_ENDIAN 1 + #elif defined(__MIPSEB__) || defined(_MIPSEB) || defined(__MIPSEB) + #define POCO_ARCH_BIG_ENDIAN 1 + #elif defined(__MIPSEL__) || defined(_MIPSEL) || defined(__MIPSEL) + #define POCO_ARCH_LITTLE_ENDIAN 1 + #else + #error "MIPS but neither MIPSEL nor MIPSEB?" + #endif + #elif defined(__hppa) || defined(__hppa__) #define POCO_ARCH POCO_ARCH_HPPA #define POCO_ARCH_BIG_ENDIAN 1