]> sourceware.org Git - newlib-cygwin.git/commitdiff
Undef basename before defining function.
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 22 Apr 2015 08:55:26 +0000 (10:55 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 22 Apr 2015 08:55:26 +0000 (10:55 +0200)
        * path.cc (basename): Undefine basename before defining function to
        avoid type collision with prototype in string.h.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index 774828faf55cb810fdceae669e04fd0776e89b28..589e0c70a4a292e2b390e966dcae7a6c4ffcbd80 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-22  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (basename): Undefine basename before defining function to
+       avoid type collision with prototype in string.h.
+
 2015-04-21  Corinna Vinschen  <corinna@vinschen.de>
 
        * include/libgen.h: Remove in favor of newlib version.
index 5439a161a1f355d4e06232ede829cd959a9a3089..ea5595698e701abf3d92f91a9fc28fc046eb770b 100644 (file)
@@ -4726,6 +4726,8 @@ out:
   return buf;
 }
 
+#undef basename
+
 /* No need to be reentrant or thread-safe according to SUSv3.
    / and \\ are treated equally.  Leading drive specifiers are
    kept intact as far as it makes sense.  Everything else is
This page took 0.035571 seconds and 5 git commands to generate.