aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/std.h
diff options
context:
space:
mode:
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