mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-06-15 15:35:35 +00:00
23 lines
523 B
C
23 lines
523 B
C
#ifndef __wasm_basics___functions_malloc_h
|
|
#define __wasm_basics___functions_malloc_h
|
|
|
|
#define __need_size_t
|
|
#define __need_wchar_t
|
|
#define __need_NULL
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *malloc(size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
|
void free(void *ptr);
|
|
void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
|
void *realloc(void *ptr, size_t size) __attribute__((__warn_unused_result__));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|