1
0
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:
Michał Janiszewski
2017-09-04 23:18:51 +02:00
committed by Michał Janiszewski
parent 7a0a344014
commit 56ab344603

View File

@@ -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