From 1a2da93c9c349f3b722e8f7d69f7145bfb085d29 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Oct 2015 02:40:54 +0200 Subject: [PATCH] path_get_size - change non-portable ssize_t to int32_t --- libretro-common/file/retro_stat.c | 6 +++--- libretro-common/include/retro_stat.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libretro-common/file/retro_stat.c b/libretro-common/file/retro_stat.c index 17e1dd0eca..261507d7a6 100644 --- a/libretro-common/file/retro_stat.c +++ b/libretro-common/file/retro_stat.c @@ -79,7 +79,7 @@ enum stat_mode IS_VALID }; -static bool path_stat(const char *path, enum stat_mode mode, ssize_t *size) +static bool path_stat(const char *path, enum stat_mode mode, int32_t *size) { #if defined(VITA) || defined(PSP) SceIoStat buf; @@ -160,9 +160,9 @@ bool path_is_valid(const char *path) return path_stat(path, IS_VALID, NULL); } -ssize_t path_get_size(const char *path) +int32_t path_get_size(const char *path) { - ssize_t filesize; + int32_t filesize; if (path_stat(path, IS_VALID, &filesize)) return filesize; diff --git a/libretro-common/include/retro_stat.h b/libretro-common/include/retro_stat.h index 032b2d9235..6429bb60bf 100644 --- a/libretro-common/include/retro_stat.h +++ b/libretro-common/include/retro_stat.h @@ -46,7 +46,7 @@ bool path_is_character_special(const char *path); bool path_is_valid(const char *path); -ssize_t path_get_size(const char *path); +int32_t path_get_size(const char *path); /** * path_mkdir_norecurse: