From 374da41a24097e2350d2f8221540d961667ab1f4 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 8 May 2021 17:56:41 +0800 Subject: [PATCH] add posix_memalign comment. --- inc/hgl/platform/os/Linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/hgl/platform/os/Linux.h b/inc/hgl/platform/os/Linux.h index 2c20647..8a92624 100644 --- a/inc/hgl/platform/os/Linux.h +++ b/inc/hgl/platform/os/Linux.h @@ -32,6 +32,7 @@ #include //#define hgl_malloc(size) memalign(HGL_MEM_ALIGN,size) //这个所有版本linux libc都支持 +// posix_memalign(...) //待区分差别 #define hgl_malloc(size) aligned_alloc(HGL_MEM_ALIGN,size) //这个是C11新增,需要libc 2.16 #define hgl_realloc(ptr,size) realloc(ptr,size) #define hgl_free free