1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

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.
This commit is contained in:
Florian Weimer
2018-08-30 14:14:53 +02:00
parent 3bad2358d6
commit 2bda273aa3
3 changed files with 8 additions and 1 deletions

View File

@ -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