diff options
Diffstat (limited to 'runtime/src/alloc.c')
| -rw-r--r-- | runtime/src/alloc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/src/alloc.c b/runtime/src/alloc.c new file mode 100644 index 00000000..f7972fbf --- /dev/null +++ b/runtime/src/alloc.c @@ -0,0 +1,15 @@ +#include "./std/unistd.h" + +#ifdef __WASM__ + +void* malloc(unsigned long); + +#else + +#include <stdlib.h> + +#endif + +void* shed__runtime__alloc(size_t size) { + return malloc(size); +} |
