From d4a50935d297c6b0ca1f84c226dd05d4b79c5bf5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 27 Apr 2016 10:58:38 +0200 Subject: [PATCH] C89_BUILD fix --- libretro-common/file/retro_dirent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/retro_dirent.c b/libretro-common/file/retro_dirent.c index 0276543b8d..bdb50094a9 100644 --- a/libretro-common/file/retro_dirent.c +++ b/libretro-common/file/retro_dirent.c @@ -174,11 +174,12 @@ bool retro_dirent_is_dir(struct RDIR *rdir) CellFsDirent *entry = (CellFsDirent*)&rdir->entry; return (entry->d_type == CELL_FS_TYPE_DIRECTORY); #elif defined(DT_DIR) + const char *path = NULL; const struct dirent *entry = (const struct dirent*)rdir->entry; if (entry->d_type == DT_DIR) return true; /* 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) return path_is_directory(path); return false;