From c5b0117352a266eb08ff70e19aefae5816cd986d Mon Sep 17 00:00:00 2001 From: Andreas Bergmeier Date: Wed, 4 Dec 2013 19:31:07 +0100 Subject: [PATCH] Add platform configuration for Emscripten. Handle as a i386 Linux variant. --- Foundation/include/Poco/Platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h index ca0d8dd81..0aee95c6e 100644 --- a/Foundation/include/Poco/Platform.h +++ b/Foundation/include/Poco/Platform.h @@ -78,7 +78,7 @@ #elif defined(__digital__) || defined(__osf__) #define POCO_OS_FAMILY_UNIX 1 #define POCO_OS POCO_OS_TRU64 -#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__TOS_LINUX__) +#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__TOS_LINUX__) || defined(EMSCRIPTEN) #define POCO_OS_FAMILY_UNIX 1 #define POCO_OS POCO_OS_LINUX #elif defined(__APPLE__) || defined(__TOS_MACOS__) @@ -156,7 +156,7 @@ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA) #define POCO_ARCH POCO_ARCH_ALPHA #define POCO_ARCH_LITTLE_ENDIAN 1 -#elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86) +#elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(EMSCRIPTEN) #define POCO_ARCH POCO_ARCH_IA32 #define POCO_ARCH_LITTLE_ENDIAN 1 #elif defined(_IA64) || defined(__IA64__) || defined(__ia64__) || defined(__ia64) || defined(_M_IA64)