Commit 2bb73d170caf93b203120d56e5ca6952abc7a2d1

Philipp Wiesemann 2015-02-14T00:08:48

Emscripten: Fixed SDL_GetPlatform() returning "Unknown" instead of "Emscripten".

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL.c b/src/SDL.c
index 69872dd..0e35120 100644
--- a/src/SDL.c
+++ b/src/SDL.c
@@ -405,6 +405,8 @@ SDL_GetPlatform()
     return "BSDI";
 #elif __DREAMCAST__
     return "Dreamcast";
+#elif __EMSCRIPTEN__
+    return "Emscripten";
 #elif __FREEBSD__
     return "FreeBSD";
 #elif __HAIKU__