]> Savannah Git Hosting - gnulib.git/commitdiff
string, wchar: port rpl_free decl to Android
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2021 16:42:41 +0000 (09:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2021 16:46:43 +0000 (09:46 -0700)
* lib/string.in.h, lib/wchar.in.h:
(free): When replacing it, declare the unreplaced version too.
Problem reported by Lucy Phipps in:
https://lists.gnu.org/r/bug-gnulib/2021-09/msg00026.html

ChangeLog
lib/string.in.h
lib/wchar.in.h

index f73dc5a1300f7af3a81b7f9f9edcd4d644602d56..d2dd671c5bc69831b4479647af76f9953525546e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-09-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       string, wchar: port rpl_free decl to Android
+       * lib/string.in.h, lib/wchar.in.h:
+       (free): When replacing it, declare the unreplaced version too.
+       Problem reported by Lucy Phipps in:
+       https://lists.gnu.org/r/bug-gnulib/2021-09/msg00026.html
+
 2021-09-07  Paul Eggert  <eggert@cs.ucla.edu>
 
        string, wchar: avoid some namespace pollution
index 6214b55784c91264e18f42875524f777ef174225..8977153c88b407ff3da5d88ed04b4dd87d30f72a 100644 (file)
@@ -86,6 +86,7 @@
 /* Declare 'free' if needed for _GL_ATTRIBUTE_DEALLOC_FREE.  */
 #if (@REPLACE_FREE@ && !defined free \
      && !(defined __cplusplus && defined GNULIB_NAMESPACE))
+_GL_EXTERN_C void free (void *);
 # define free rpl_free
 #endif
 _GL_EXTERN_C void free (void *);
index 027a1454966e509d84953b5e7b5a29968a6b5c0f..acb9d4ea64811801427f27cb2e3776620d958ad2 100644 (file)
@@ -149,6 +149,7 @@ typedef int rpl_mbstate_t;
 /* Declare 'free' if needed for _GL_ATTRIBUTE_DEALLOC_FREE.  */
 #if (@REPLACE_FREE@ && !defined free \
      && !(defined __cplusplus && defined GNULIB_NAMESPACE))
+_GL_EXTERN_C void free (void *);
 # define free rpl_free
 #endif
 _GL_EXTERN_C void free (void *);