aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/std.h
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 11:42:52 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 11:42:52 +0000
commit5230ee879b633ce89af4b8d34fe60874d96c04b2 (patch)
treeef35f63a553fdfd50ad9ec4e55bb64a1ca67073f /runtime/src/std.h
parent6ea0811516d528c27d458bdcb18d0b51120ed011 (diff)
Extract std.h
Diffstat (limited to 'runtime/src/std.h')
-rw-r--r--runtime/src/std.h14
1 files changed, 14 insertions, 0 deletions
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