1 --- a/ibrcommon/data/File.cpp
2 +++ b/ibrcommon/data/File.cpp
7 -#if !defined(HAVE_FEATURES_H) || defined(ANDROID)
13 @@ -226,7 +224,7 @@ namespace ibrcommon
14 std::string File::getBasename() const
16 #if !defined(ANDROID) && defined(HAVE_FEATURES_H)
17 - return std::string(basename(_path.c_str()));
18 + return std::string(basename((char *)_path.c_str()));
20 char path[_path.length()+1];
21 ::memcpy(&path, _path.c_str(), _path.length()+1);