VSF Documented
malloc.h
Go to the documentation of this file.
1#ifndef __SIMPLE_LIBC_MALLOC_H__
2#define __SIMPLE_LIBC_MALLOC_H__
3
5
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED
7# include "./stddef.h"
8#else
9# include <stddef.h>
10#endif
11#include "./stdlib.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define aligned_malloc aligned_alloc
18#define aligned_free free
19#define memalign aligned_alloc
20
21#ifdef __WIN__
22# define _aligned_malloc aligned_malloc
23# define _aligned_free aligned_free
24#endif
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif