diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-31 22:36:29 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-31 22:39:01 +0200 |
commit | c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa (patch) | |
tree | 4feb0be62f8d486135e58130c7b541330b01f17f /include/malloc.h | |
parent | m (diff) | |
download | slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.gz slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.bz2 slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.xz |
add _LIBRARY_HEADER
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/malloc.h')
-rw-r--r-- | include/malloc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/malloc.h b/include/malloc.h index ab8e0a9..56a6174 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -18,8 +18,6 @@ #ifndef _MALLOC_H #define _MALLOC_H #include <slibc/version.h> - - #include <slibc/features.h> @@ -112,13 +110,13 @@ void free(void*) * beginning of a memory allocation on the heap. * However, if it is `NULL`, nothing will happen. */ -#ifndef _PORTABLE_SOURCE +#ifndef __PORTABLE void cfree(void*, ...) __deprecated("'cfree' is deprecated and not portable, use 'free' instead."); #endif -#ifndef _PORTABLE_SOURCE +#ifndef __PORTABLE /** * Variant of `malloc` that returns an address with a * specified alignment. @@ -169,7 +167,7 @@ void* memalign(size_t, size_t) int posix_memalign(void**, size_t, size_t) __GCC_ONLY(__attribute__((nonnull))); -#ifndef _PORTABLE_SOURCE +#ifndef __PORTABLE /** * `valloc(n)` is equivalent to `memalign(sysconf(_SC_PAGESIZE), n)`. * @@ -241,7 +239,7 @@ void* aligned_alloc(size_t, size_t) #endif -#if defined(_GNU_SOURCE) && !defined(_PORTABLE_SOURCE) +#if defined(_GNU_SOURCE) && !defined(__PORTABLE) /** * This function returns the allocation size of * a memory segment. |