diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 11:42:52 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 11:42:52 +0000 |
| commit | 5230ee879b633ce89af4b8d34fe60874d96c04b2 (patch) | |
| tree | ef35f63a553fdfd50ad9ec4e55bb64a1ca67073f /runtime/src | |
| parent | 6ea0811516d528c27d458bdcb18d0b51120ed011 (diff) | |
Extract std.h
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/shed.h | 10 | ||||
| -rw-r--r-- | runtime/src/std.h | 14 |
2 files changed, 15 insertions, 9 deletions
diff --git a/runtime/src/shed.h b/runtime/src/shed.h index 3a9d3ff9..b8ff14a0 100644 --- a/runtime/src/shed.h +++ b/runtime/src/shed.h @@ -1,15 +1,7 @@ #ifndef SHED_H #define SHED_H -#include <stdint.h> - -#ifdef __WASM__ -typedef uint32_t size_t; -typedef int32_t ssize_t; -#define NULL 0 -#else -#include <unistd.h> -#endif +#include "./std.h" #ifdef __WASM__ typedef uint32_t PatioInt; diff --git a/runtime/src/std.h b/runtime/src/std.h new file mode 100644 index 00000000..39ea6046 --- /dev/null +++ b/runtime/src/std.h @@ -0,0 +1,14 @@ +#ifndef SHED_STD_H +#define SHED_STD_H + +#include <stdint.h> + +#ifdef __WASM__ +typedef uint32_t size_t; +typedef int32_t ssize_t; +#define NULL 0 +#else +#include <unistd.h> +#endif + +#endif |
