]> rtime.felk.cvut.cz Git - ulut.git/blob - ulut/ul_utmalloc.h
uLUt: opengroup specifies that malloc is defined in stdlib.h.
[ulut.git] / ulut / ul_utmalloc.h
1 #ifndef _UL_UTMALLOC_H
2 #define _UL_UTMALLOC_H
3
4 #if !defined(__RTL__)&&!defined(__KERNEL__)
5
6 #include <stdlib.h>
7
8 #else /*__RTL__ or __KERNEL__*/
9
10 #ifdef UL_WITH_RTL_MALLOC
11 #include <rtl_malloc.h>
12 #define malloc    rt_malloc
13 #define free      rt_free
14 #define realloc   rt_realloc
15 #endif /*UL_WITH_RTL_MALLOC*/
16
17 #endif /*__RTL__ or __KERNEL__*/
18
19 #endif /*_UL_UTMALLOC_H*/