mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-06-14 18:13:11 +00:00

MultiSource/Benchmarks/McCat in llvm-test-suite has a macro named `n`, so rename function parameters to avoid colliding.
27 lines
696 B
C
27 lines
696 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__));
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) __attribute__((__warn_unused_result__));
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|