Skip to content

Commit

Permalink
Added Emscripten support (see electronicarts#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris0106 committed Nov 25, 2024
1 parent 5280142 commit 52a8d12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/EABase/config/eaplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,13 @@
#define EA_PLATFORM_WINRT 1
#endif

#elif defined(__EMSCRIPTEN__) || defined(__wasm__) || defined(__wasm32__) || defined(__wasm64__)
#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 // disable it

// Sun (Solaris)
// __SUNPRO_CC is defined by the Sun compiler.
// __sun is defined by the GCC compiler.
Expand Down

0 comments on commit 52a8d12

Please sign in to comment.