FreeRDP/winpr/libwinpr/clipboard/posix.c:397:20: error: conflicting types for ‘basename’
static const char* basename(const char* name)
^
In file included from FreeRDP/winpr/include/winpr/collections.h:25:0,
from FreeRDP/winpr/libwinpr/clipboard/posix.c:37:
/usr/include/string.h:599:14: note: previous declaration of ‘basename’ was here
extern char *basename (const char *__filename) __THROW __nonnull ((1));
return TRUE;
}
-static const char* basename(const char* name)
+static const char* get_basename(const char* name)
{
const char* c = name;
const char* last_name = name;
* exact files selected by the user, and we want the remote files
* to have names relative to that selection.
*/
- base_name = basename(local_name);
+ base_name = get_basename(local_name);
remote_name = convert_local_name_component_to_remote(base_name);
if (!remote_name)