From 60f3839cf77dc575449cbe01466f7b71a303a135 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 30 Oct 2019 16:19:22 +0800 Subject: clean the malloc things --- include/memalign.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/memalign.h') diff --git a/include/memalign.h b/include/memalign.h index 2f8a02b..a4d9927 100644 --- a/include/memalign.h +++ b/include/memalign.h @@ -6,6 +6,17 @@ #ifndef __ALIGNMEM_H #define __ALIGNMEM_H +#ifdef __cplusplus +extern "C" { +#endif + +void *memalign(size_t alignment, size_t size); +void *pvalloc(size_t size); + +#ifdef __cplusplus +} +#endif + /* * ARCH_DMA_MINALIGN is defined in asm/cache.h for each architecture. It * is used to align DMA buffers. -- cgit v1.2.3