]> Savannah Git Hosting - gnulib.git/commit
string, wchar: avoid some namespace pollution
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2021 00:51:39 +0000 (17:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2021 00:56:01 +0000 (17:56 -0700)
commita4a2d039a9117266ed8cb1977241e7c34b368993
treea22569b38117ddc2c4d38ad74176d8968bdaa638
parent2c062d406a8ce00165b3b78c765e7f6a07ec8615
string, wchar: avoid some namespace pollution

* lib/string.in.h, lib/wchar.in.h:
(free): Declare by hand instead of including stdlib.h.
This avoids some namespace pollution.  It should also avoid some
nested-include problems described by Lucy Phipps in:
https://lists.gnu.org/r/bug-gnulib/2021-09/msg00018.html
* modules/string, modules/wchar:
(Depends-on): Add stdlib, so that REPLACE_FREE has the right value.
(Makefile.am): Replace @REPLACE_FREE@ when creating the include file.
ChangeLog
lib/attribute.h
lib/stdlib.in.h
lib/string.in.h
lib/wchar.in.h
m4/gnulib-common.m4
modules/string
modules/wchar