From: Bruno Haible Date: Fri, 5 Oct 2018 19:50:47 +0000 (+0200) Subject: memcmp: Make it possible to namespace the defined symbol. X-Git-Tag: v1.0~5375 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a738b735c245067d6696244dc9306aa82295de21;p=gnulib.git memcmp: Make it possible to namespace the defined symbol. * lib/memcmp.c (memcmp): Don't undefine outside of glibc. --- diff --git a/ChangeLog b/ChangeLog index 4d2542b507..8d2921dc8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-10-05 Bruno Haible + + memcmp: Make it possible to namespace the defined symbol. + * lib/memcmp.c (memcmp): Don't undefine outside of glibc. + 2018-10-05 Bruno Haible explicit_bzero: Make it possible to namespace the defined symbol. diff --git a/lib/memcmp.c b/lib/memcmp.c index 9799dcbe41..8298ae4a6d 100644 --- a/lib/memcmp.c +++ b/lib/memcmp.c @@ -27,10 +27,10 @@ #include -#undef memcmp - #ifdef _LIBC +# undef memcmp + # include # include