free: Fix warning.
commit0aa8ef42465a8a7828960311230308af7042e414
authorBruno Haible <bruno@clisp.org>
Thu, 17 Dec 2020 23:41:07 +0000 (18 00:41 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 17 Dec 2020 23:41:07 +0000 (18 00:41 +0100)
tree1394ecbdd1a5510077454f689e96357d1f855cb3
parent8968aaa702c80a6d4c3af56e6892b5ad4359caf3
free: Fix warning.

Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.

* lib/stdlib.in.h (free): New declaration.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
* modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
* m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
'free' as a macro here.
* modules/free (Depends-on): Add stdlib.
(configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
ChangeLog
lib/stdlib.in.h
m4/free.m4
m4/stdlib_h.m4
modules/free
modules/stdlib