aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index d827561..6243100 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,12 +1,6 @@
#include "gameCommon.h"
#include "game.h"
-//#define PLATFORM_WEB
-
-#if defined(PLATFORM_WEB)
- #include <emscripten/emscripten.h>
-#endif
-
Game game;
void updateFrame() {
@@ -16,7 +10,7 @@ void updateFrame() {
int main(int argc, char ** argv) {
initGame(&game);
-#if defined(PLATFORM_WEB)
+#ifdef PLATFORM_WEB
emscripten_set_main_loop(updateFrame, 0, 1);
#else
while (!WindowShouldClose()) {