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.
This commit is contained in:
parent
757af6a69f
commit
3e96ba220e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue