diff lib/memcmp.c @ 39888:281300b4ad17

memcmp: Make it possible to namespace the defined symbol. * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
author Bruno Haible <bruno@clisp.org>
date Fri, 05 Oct 2018 21:50:47 +0200
parents 10eb9086bea0
children b06060465f09
line wrap: on
line diff
--- a/lib/memcmp.c	Fri Oct 05 21:49:39 2018 +0200
+++ b/lib/memcmp.c	Fri Oct 05 21:50:47 2018 +0200
@@ -27,9 +27,9 @@
 
 #include <stdint.h>
 
-#undef memcmp
+#ifdef _LIBC
 
-#ifdef _LIBC
+# undef memcmp
 
 # include <memcopy.h>
 # include <endian.h>