mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Add Emscripten platform and architecture defines
This commit is contained in:
committed by
Michał Janiszewski
parent
7a0a344014
commit
56ab344603
@@ -40,6 +40,9 @@
|
||||
#elif defined(__mips__)
|
||||
#define OPENRCT2_ARCHITECTURE "mips"
|
||||
#endif
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#define OPENRCT2_ARCHITECTURE "Emscripten"
|
||||
#endif
|
||||
|
||||
#ifndef OPENRCT2_ARCHITECTURE
|
||||
#error "OPENRCT2_ARCHITECTURE is undefined. Please add identification."
|
||||
@@ -64,6 +67,9 @@
|
||||
#ifdef __OpenBSD__
|
||||
#define OPENRCT2_PLATFORM "OpenBSD"
|
||||
#endif
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#define OPENRCT2_PLATFORM "Emscripten"
|
||||
#endif
|
||||
#ifndef OPENRCT2_PLATFORM
|
||||
#error Unknown platform!
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user