Support for emscripten

This commit is contained in:
2022-08-03 18:16:30 -04:00
parent c6046d9150
commit fa346ace47
4 changed files with 22 additions and 8 deletions

View File

@@ -4,6 +4,8 @@
#if _WIN32
using mode_t = int;
#else
#include <sys/stat.h>
#endif
namespace athena {

View File

@@ -47,7 +47,7 @@
#endif
// clang-format on
#if defined(GEKKO) || defined(__SWITCH__)
#if defined(GEKKO) || defined(__SWITCH__) || defined(EMSCRIPTEN)
#include "gekko_support.h"
typedef struct stat atStat64_t;
#define atStat64 stat