From 1920f1b489a54e8ab97a3e24b1bab64831e32b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 26 Apr 2019 17:57:49 +0200 Subject: New upstream version 0.9.2 --- src/UriMemory.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/UriMemory.c') diff --git a/src/UriMemory.c b/src/UriMemory.c index 5e6bcc4..d942186 100644 --- a/src/UriMemory.c +++ b/src/UriMemory.c @@ -42,11 +42,9 @@ * Holds memory manager implementation. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include -#if HAVE_REALLOCARRAY +#ifdef HAVE_REALLOCARRAY # ifndef _GNU_SOURCE # define _GNU_SOURCE 1 # endif @@ -97,7 +95,7 @@ static void * uriDefaultRealloc(UriMemoryManager * URI_UNUSED(memory), static void * uriDefaultReallocarray(UriMemoryManager * URI_UNUSED(memory), void * ptr, size_t nmemb, size_t size) { -#if HAVE_REALLOCARRAY +#ifdef HAVE_REALLOCARRAY return reallocarray(ptr, nmemb, size); #else const size_t total_size = nmemb * size; -- cgit v1.2.3