From c0f725b888e07b34f8f39247a940db81af6962f2 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Sat, 10 Nov 2012 11:43:27 +0100 Subject: [PATCH] - fixed SF# 588: Missing POCO_ARCH and POCO_ARCH_LITTLE_ENDIAN define for WinCE on SH4 --- Foundation/include/Poco/Platform.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h index 33060873c..55e515ce7 100644 --- a/Foundation/include/Poco/Platform.h +++ b/Foundation/include/Poco/Platform.h @@ -1,7 +1,7 @@ // // Platform.h // -// $Id: //poco/1.4/Foundation/include/Poco/Platform.h#4 $ +// $Id: //poco/1.4/Foundation/include/Poco/Platform.h#5 $ // // Library: Foundation // Package: Core @@ -123,6 +123,11 @@ #endif +#if !defined(POCO_OS) + #error "Unknown Platform." +#endif + + // // Hardware Architecture and Byte Order // @@ -188,9 +193,9 @@ #elif defined(__s390__) #define POCO_ARCH POCO_ARCH_S390 #define POCO_ARCH_BIG_ENDIAN 1 -#elif defined(__sh__) || defined(__sh) +#elif defined(__sh__) || defined(__sh) || defined(SHx) || defined(_SHX_) #define POCO_ARCH POCO_ARCH_SH - #if defined(__LITTLE_ENDIAN__) + #if defined(__LITTLE_ENDIAN__) || (POCO_OS == POCO_OS_WINDOWS_CE) #define POCO_ARCH_LITTLE_ENDIAN 1 #else #define POCO_ARCH_BIG_ENDIAN 1 @@ -206,4 +211,9 @@ #endif +#if !defined(POCO_ARCH) + #error "Unknown Hardware Architecture." +#endif + + #endif // Foundation_Platform_INCLUDED