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:
@ -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
|
||||
|
Reference in New Issue
Block a user