diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-27 13:49:16 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-07-27 14:17:10 +0200 |
commit | 3e96ba220e749f58e1103687dd1e2b123fa69e3b (patch) | |
tree | decfb48f51440bb95dc79df0d6c3d09f2398dfc3 /platform | |
parent | 757af6a69f7f2053c60d453c827c691319f6d329 (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.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/javascript_main.cpp | 1 |
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; |