Fix setenv not defined in older emscripten verions.

This commit is contained in:
Fabio Alessandrelli 2020-07-15 22:11:08 +02:00
parent 4abebfa476
commit e7099ed2ea
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include "platform/javascript/os_javascript.h" #include "platform/javascript/os_javascript.h"
#include <emscripten/emscripten.h> #include <emscripten/emscripten.h>
#include <stdlib.h>
static OS_JavaScript *os = NULL; static OS_JavaScript *os = NULL;
static uint64_t target_ticks = 0; static uint64_t target_ticks = 0;