From: Bruno Haible Date: Fri, 26 Oct 2001 09:35:49 +0000 (+0000) Subject: Avoid a warning on non-glibc platforms. X-Git-Tag: v0.11~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6b7a32db98cacd7dd02e7b861f046a9a2345f1;p=thirdparty%2Fgettext.git Avoid a warning on non-glibc platforms. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 09dee1670..5f67abe33 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2001-10-21 Bruno Haible + + * basename.c: #undef basename before defining it. This avoids a + warning on non-glibc platforms. + 2001-10-09 Bruno Haible * localcharset.c (getc): Define as getc_unlocked if available. diff --git a/lib/basename.c b/lib/basename.c index ca0b589f4..578c1772a 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -42,6 +42,7 @@ #ifndef _LIBC /* We cannot generally use the name `basename' since XPG defines an unusable variant of the function but we cannot use it. */ +# undef basename # define basename gnu_basename #endif