summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-07-27 13:49:16 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-07-27 14:17:10 +0200
commit3e96ba220e749f58e1103687dd1e2b123fa69e3b (patch)
treedecfb48f51440bb95dc79df0d6c3d09f2398dfc3
parent757af6a69f7f2053c60d453c827c691319f6d329 (diff)
Correctly include <stdlib.h> in javascript main.
Already fixed in 3.2, this header is needed since it's where setenv is declared and we should not assume it to be already included.
-rw-r--r--platform/javascript/javascript_main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/javascript_main.cpp b/platform/javascript/javascript_main.cpp
index 99672745e7..50512d0e36 100644
--- a/platform/javascript/javascript_main.cpp
+++ b/platform/javascript/javascript_main.cpp
@@ -34,6 +34,7 @@
#include "platform/javascript/os_javascript.h"
#include <emscripten/emscripten.h>
+#include <stdlib.h>
static OS_JavaScript *os = nullptr;
static uint64_t target_ticks = 0;