[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] realloc: fix undef typo
From: |
Paul Eggert |
Subject: |
[PATCH] realloc: fix undef typo |
Date: |
Sat, 10 Apr 2021 13:41:10 -0700 |
* 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 5d91c7acc..9aae007f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-04-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ 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 <bruno@clisp.org>
execute tests: Avoid test failure in certain environments.
diff --git a/lib/realloc.c b/lib/realloc.c
index 51d8d2108..ab027d7f7 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.27.0
- [PATCH] realloc: fix undef typo,
Paul Eggert <=