]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a warning on non-glibc platforms.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Oct 2001 09:35:49 +0000 (09:35 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Oct 2001 09:35:49 +0000 (09:35 +0000)
lib/ChangeLog
lib/basename.c

index 09dee1670cf834b624f2c84460e42c4981a65f4b..5f67abe33eb5b79db9cf277a6ab5ae71030b9c66 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-21  Bruno Haible  <haible@clisp.cons.org>
+
+       * basename.c: #undef basename before defining it. This avoids a
+       warning on non-glibc platforms.
+
 2001-10-09  Bruno Haible  <haible@clisp.cons.org>
 
        * localcharset.c (getc): Define as getc_unlocked if available.
index ca0b589f4785bad47c97672322d2dc06fb1bc92c..578c1772af6341c9e56f70345e5c705ed813b8e9 100644 (file)
@@ -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