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

ChangeLog
lib/memcmp.c

index 4d2542b507a677a21a67aa6421db10a7f98ea0c5..8d2921dc8a3373f9b988f5951e792a1905fcf74b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-05  Bruno Haible  <bruno@clisp.org>
+
+       memcmp: Make it possible to namespace the defined symbol.
+       * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
+
 2018-10-05  Bruno Haible  <bruno@clisp.org>
 
        explicit_bzero: Make it possible to namespace the defined symbol.
index 9799dcbe41997d2ead671a8252a5b5251b2be619..8298ae4a6dda680f74b975f2a94ae0671abdf769 100644 (file)
 
 #include <stdint.h>
 
-#undef memcmp
-
 #ifdef _LIBC
 
+# undef memcmp
+
 # include <memcopy.h>
 # include <endian.h>