Add stubs, wanted to compile to wasm

This commit is contained in:
Krzosa Karol
2024-03-15 16:23:33 +01:00
parent 0c4d19c9b8
commit 1b48585308
4 changed files with 36 additions and 5 deletions

View File

@@ -11,6 +11,7 @@
#elif defined(__linux__)
#define OS_POSIX 1
#define OS_LINUX 1
#elif OS_WASM
#else
#error Unsupported platform
#endif
@@ -109,6 +110,8 @@
#define OS_NAME "linux"
#elif OS_MAC
#define OS_NAME "mac_os"
#elif OS_WASM
#define OS_NAME "wasm"
#else
#error couldnt figure out OS
#endif