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:
parent
84e4cb880a
commit
3d96fa7072
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue