From 1dea1569210f945d4ac5546394bf4ee70a3bac5a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 10 Apr 2021 13:38:50 -0700 Subject: [PATCH] realloc: fix undef typo * lib/realloc.c: #undef realloc if config.h defines it. This fixes a typo that I introduced in 2011-04-08T18:39:01Z!eggert@cs.ucla.edu. Apparently nobody uses Gnulib realloc in that way? --- ChangeLog | 8 ++++++++ lib/realloc.c | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5d91c7acc4..9aae007f93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2021-04-10 Paul Eggert + + realloc: fix undef typo + * lib/realloc.c: #undef realloc if config.h defines it. + This fixes a typo that I introduced in + 2011-04-08T18:39:01Z!eggert@cs.ucla.edu. + Apparently nobody uses Gnulib realloc in that way? + 2021-04-07 Bruno Haible execute tests: Avoid test failure in certain environments. diff --git a/lib/realloc.c b/lib/realloc.c index 51d8d21087..ab027d7f77 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -24,6 +24,7 @@ /* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */ #ifdef realloc # define NEED_REALLOC_GNU 1 +# undef realloc /* Whereas the gnulib module 'realloc-gnu' defines HAVE_REALLOC_GNU. */ #elif GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU # define NEED_REALLOC_GNU 1 -- 2.39.5