]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
explicit_bzero: Make it possible to namespace the defined symbol.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 19:49:39 +0000 (21:49 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 19:49:39 +0000 (21:49 +0200)
* lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
glibc.

ChangeLog
lib/explicit_bzero.c

index fd631de1a0e6b57a71f56cb3c6de0c445f3f0c23..4d2542b507a677a21a67aa6421db10a7f98ea0c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-10-05  Bruno Haible  <bruno@clisp.org>
+
+       explicit_bzero: Make it possible to namespace the defined symbol.
+       * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
+       glibc.
+
 2018-10-05  Bruno Haible  <bruno@clisp.org>
 
        mkdir-p: Depend on 'mkdir'.
index 033176488f7227c3bc8b6b421e629cbd7ffab37a..124b3cc44248d5f58467fd0e75c576383e2d4327 100644 (file)
 
 #include <string.h>
 
+#if _LIBC
 /* glibc-internal users use __explicit_bzero_chk, and explicit_bzero
    redirects to that.  */
-#undef explicit_bzero
+# undef explicit_bzero
+#endif
 
 /* Set LEN bytes of S to 0.  The compiler will not delete a call to
    this function, even if S is dead after the call.  */