From fedccbfd79dfcffd52463c267582b5e851470713 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 22 May 2023 01:47:38 +0300 Subject: [PATCH] Add alloc functions to stdlib header --- include_std/stdlib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include_std/stdlib.h b/include_std/stdlib.h index 3d95cab2..01bfa104 100644 --- a/include_std/stdlib.h +++ b/include_std/stdlib.h @@ -18,4 +18,18 @@ #ifndef _STDLIB_H #define _STDLIB_H +#ifdef __cplusplus +extern "C" +{ +#endif + + void *malloc(__SIZE_TYPE__ Size); + void *calloc(__SIZE_TYPE__ n, __SIZE_TYPE__ Size); + void *realloc(void *Address, __SIZE_TYPE__ Size); + void free(void *Address); + +#ifdef __cplusplus +} +#endif + #endif // !_STDLIB_H