diff options
Diffstat (limited to '9/platforms/android-21/arch-arm64/usr/include/malloc.h')
-rw-r--r-- | 9/platforms/android-21/arch-arm64/usr/include/malloc.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/9/platforms/android-21/arch-arm64/usr/include/malloc.h b/9/platforms/android-21/arch-arm64/usr/include/malloc.h index 1e92b7d..e6ea276 100644 --- a/9/platforms/android-21/arch-arm64/usr/include/malloc.h +++ b/9/platforms/android-21/arch-arm64/usr/include/malloc.h @@ -27,19 +27,12 @@ __BEGIN_DECLS -#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ < 5) extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1))); extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur __attribute__((alloc_size(1,2))); extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2))); -extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2))); -#else -extern void* malloc(size_t byte_count) __mallocfunc __wur; -extern void* calloc(size_t item_count, size_t item_size) __mallocfunc __wur; -extern void* realloc(void* p, size_t byte_count) __wur; -extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur; -#endif - extern void free(void* p); + +extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2))); extern size_t malloc_usable_size(const void* p); #ifndef STRUCT_MALLINFO_DECLARED |