diff options
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/alloc.c (renamed from runtime/src/shed.c) | 12 | ||||
| -rw-r--r-- | runtime/src/alloc.h | 8 |
2 files changed, 13 insertions, 7 deletions
diff --git a/runtime/src/shed.c b/runtime/src/alloc.c index 05e5dd9b..f7972fbf 100644 --- a/runtime/src/shed.c +++ b/runtime/src/alloc.c @@ -1,15 +1,13 @@ -#include <stdint.h> - -#ifndef __WASM__ -#include <stdlib.h> -#endif - -#include "./shed.h" +#include "./std/unistd.h" #ifdef __WASM__ void* malloc(unsigned long); +#else + +#include <stdlib.h> + #endif void* shed__runtime__alloc(size_t size) { diff --git a/runtime/src/alloc.h b/runtime/src/alloc.h new file mode 100644 index 00000000..b0a4e1cd --- /dev/null +++ b/runtime/src/alloc.h @@ -0,0 +1,8 @@ +#ifndef SHED_ALLOC_H +#define SHED_ALLOC_H + +#include "./std/unistd.h" + +void* shed__runtime__alloc(size_t size); + +#endif |
