From 2bda273aa37e47bb5afdaf122605440391dac7c5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 30 Aug 2018 14:14:53 +0200 Subject: reallocarray: Declare under _DEFAULT_SOURCE Initially, this function was restricted to _GNU_SOURCE, but experience shows that compatibility with existing build systems is improved if we declare it under _DEFAULT_SOURCE as well. --- stdlib/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 8e23e93..870e02d 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -549,7 +549,7 @@ extern void *calloc (size_t __nmemb, size_t __size) extern void *realloc (void *__ptr, size_t __size) __THROW __attribute_warn_unused_result__; -#ifdef __USE_GNU +#ifdef __USE_MISC /* Re-allocate the previously allocated block in PTR, making the new block large enough for NMEMB elements of SIZE bytes each. */ /* __attribute_malloc__ is not used, because if reallocarray returns -- cgit v1.1