diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 11:56:40 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 11:56:40 +0000 |
| commit | a4e0b7fb9643cba77e12df67d761dbc6950ab439 (patch) | |
| tree | 5d00206d991a7a6f0abf4e9c084688d7ade69f9b /runtime/src/std | |
| parent | 401a9f0cc7b5792d11e4c9b889578ff0f110d65e (diff) | |
Split std.h
Diffstat (limited to 'runtime/src/std')
| -rw-r--r-- | runtime/src/std/unistd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/src/std/unistd.h b/runtime/src/std/unistd.h new file mode 100644 index 00000000..df0b9dcb --- /dev/null +++ b/runtime/src/std/unistd.h @@ -0,0 +1,13 @@ +#ifndef SHED_STD_UNISTD_H +#define SHED_STD_UNISTD_H + +#ifdef __WASM__ +#include <stdint.h> +typedef uint32_t size_t; +typedef int32_t ssize_t; +#define NULL 0 +#else +#include <unistd.h> +#endif + +#endif |
