]> git.proxmox.com Git - wasi-libc.git/blob - basics/include/__functions_malloc.h
803bc1138f205e90ef86281f9848051214dd72d5
[wasi-libc.git] / basics / include / __functions_malloc.h
1 #ifndef __wasm_basics___functions_malloc_h
2 #define __wasm_basics___functions_malloc_h
3
4 #define __need_size_t
5 #define __need_wchar_t
6 #define __need_NULL
7 #include <stddef.h>
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 void *malloc(size_t size) __attribute__((__malloc__, __warn_unused_result__));
14 void free(void *ptr);
15 void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__, __warn_unused_result__));
16 void *realloc(void *ptr, size_t size) __attribute__((__warn_unused_result__));
17
18 #ifdef __cplusplus
19 }
20 #endif
21
22 #endif