mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
C89_BUILD fix
This commit is contained in:
parent
b4f4720f51
commit
d4a50935d2
@ -174,11 +174,12 @@ bool retro_dirent_is_dir(struct RDIR *rdir)
|
|||||||
CellFsDirent *entry = (CellFsDirent*)&rdir->entry;
|
CellFsDirent *entry = (CellFsDirent*)&rdir->entry;
|
||||||
return (entry->d_type == CELL_FS_TYPE_DIRECTORY);
|
return (entry->d_type == CELL_FS_TYPE_DIRECTORY);
|
||||||
#elif defined(DT_DIR)
|
#elif defined(DT_DIR)
|
||||||
|
const char *path = NULL;
|
||||||
const struct dirent *entry = (const struct dirent*)rdir->entry;
|
const struct dirent *entry = (const struct dirent*)rdir->entry;
|
||||||
if (entry->d_type == DT_DIR)
|
if (entry->d_type == DT_DIR)
|
||||||
return true;
|
return true;
|
||||||
/* This can happen on certain file systems. */
|
/* This can happen on certain file systems. */
|
||||||
const char *path = retro_dirent_get_name(rdir);
|
path = retro_dirent_get_name(rdir);
|
||||||
if (entry->d_type == DT_UNKNOWN || entry->d_type == DT_LNK)
|
if (entry->d_type == DT_UNKNOWN || entry->d_type == DT_LNK)
|
||||||
return path_is_directory(path);
|
return path_is_directory(path);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user