Undef basename before defining function.

* 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>
This commit is contained in:
Corinna Vinschen 2015-04-22 10:55:26 +02:00
parent 84e4cb880a
commit 3d96fa7072
2 changed files with 7 additions and 0 deletions

View 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> 2015-04-21 Corinna Vinschen <corinna@vinschen.de>
* include/libgen.h: Remove in favor of newlib version. * include/libgen.h: Remove in favor of newlib version.

View File

@ -4726,6 +4726,8 @@ out:
return buf; return buf;
} }
#undef basename
/* No need to be reentrant or thread-safe according to SUSv3. /* No need to be reentrant or thread-safe according to SUSv3.
/ and \\ are treated equally. Leading drive specifiers are / and \\ are treated equally. Leading drive specifiers are
kept intact as far as it makes sense. Everything else is kept intact as far as it makes sense. Everything else is