aboutsummaryrefslogtreecommitdiffstats
path: root/include/malloc.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-17 00:58:39 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-17 00:58:39 +0200
commit69ed661a488c0e02bf5fee3dc21e6a31a99a8d85 (patch)
treed4172bd2932f8b163b58651dd2f1e14f535304c0 /include/malloc.h
parentm fixes (diff)
downloadslibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.gz
slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.bz2
slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.xz
fix errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/malloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 6373668..c1d4a85 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -84,7 +84,7 @@ void* calloc(size_t, size_t)
* @throws ENOMEM The process cannot allocate more memory.
*/
void* zalloc(size_t)
- __warning("'zalloc' is klibc extension, use 'calloc(1, n)' instead of 'zalloc(n)'."),
+ __warning("'zalloc' is klibc extension, use 'calloc(1, n)' instead of 'zalloc(n)'.")
__GCC_ONLY(__attribute__((malloc, warn_unused_result)));
#endif
@@ -235,7 +235,7 @@ void* pvalloc(size_t)
__deprecated("'pvalloc' is deprecated, use 'memalign' or 'posix_memalign' instead.");
#endif
-#ifdef __C11__
+#if defined(__C11__) || defined(__BUILDING_SLIBC)
/**
* This function is identical to `memalign`,
* except it can be freed with `free`.