From 3e2f7ea0861f57cd10f3030d2c5912bf2dc8939f Mon Sep 17 00:00:00 2001 From: Elias Daler Date: Sun, 7 Dec 2025 03:07:45 +0100 Subject: [PATCH] Add Emscripten support --- include/Common/EABase/config/eaplatform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/Common/EABase/config/eaplatform.h b/include/Common/EABase/config/eaplatform.h index cc297ec..542f65b 100644 --- a/include/Common/EABase/config/eaplatform.h +++ b/include/Common/EABase/config/eaplatform.h @@ -614,6 +614,13 @@ #define EA_PLATFORM_WINRT 1 #endif +#elif defined(__EMSCRIPTEN__) + #define EA_PROCESSOR_EMSCRIPTEN 1 + #define EA_SYSTEM_LITTLE_ENDIAN 1 + #define EA_PLATFORM_DESCRIPTION "Emscripten WASM" + #define EA_PLATFORM_POSIX 1 + #define EASTL_DEBUG_BREAK_OVERRIDE 1 + // Sun (Solaris) // __SUNPRO_CC is defined by the Sun compiler. // __sun is defined by the GCC compiler.