aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/shed/alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/shed/alloc.h')
-rw-r--r--runtime/src/shed/alloc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/src/shed/alloc.h b/runtime/src/shed/alloc.h
new file mode 100644
index 00000000..07a14436
--- /dev/null
+++ b/runtime/src/shed/alloc.h
@@ -0,0 +1,19 @@
+#ifndef SHED_ALLOC_H
+#define SHED_ALLOC_H
+
+#include "./std/unistd.h"
+
+#ifdef __wasm__
+
+void* malloc(unsigned long);
+void free(void*);
+
+#else
+
+#include <stdlib.h>
+
+#endif
+
+void* shed__runtime__alloc(size_t size);
+
+#endif