mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-27 11:41:49 +00:00
Try to fix linux build
This commit is contained in:
parent
57b4d658cc
commit
1a378ea7a9
@ -21,6 +21,7 @@
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
#include "FileUtil.h"
|
||||
@ -55,7 +56,8 @@ static bool FixFilenameCase(const std::string &path, std::string &filename)
|
||||
|
||||
while (!readdir_r(dirp, (dirent*) &diren, &result) && result)
|
||||
{
|
||||
if (result->d_namlen != filenameSize)
|
||||
// Hm, is this check UTF-8 compatible? (size vs strlen)
|
||||
if (strlen(result->d_name) != filenameSize)
|
||||
continue;
|
||||
|
||||
size_t i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user