From 15b7fa545d31b068b2c0b414d2aa856bb914b6a0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 21 Sep 2015 22:48:50 +0200 Subject: [PATCH] (PSP1) Buildfix --- libretro-common/file/file_path.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index dc1dbf3ad9..9c9b6bd987 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -78,6 +78,9 @@ #endif +#if defined(VITA) +#define FIO_SO_ISDIR PSP2_S_ISDIR +#endif /** * path_get_extension: @@ -176,7 +179,7 @@ bool path_is_directory(const char *path) SceIoStat buf; if (sceIoGetstat(path, &buf) < 0) return false; - return PSP2_S_ISDIR(buf.st_mode); + return FIO_SO_ISDIR(buf.st_mode); #elif defined(__CELLOS_LV2__) CellFsStat buf; if (cellFsStat(path, &buf) < 0)