path_get_size - change non-portable ssize_t to int32_t

This commit is contained in:
twinaphex 2015-10-01 02:40:54 +02:00
parent 90549903b7
commit 1a2da93c9c
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ enum stat_mode
IS_VALID 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) #if defined(VITA) || defined(PSP)
SceIoStat buf; SceIoStat buf;
@ -160,9 +160,9 @@ bool path_is_valid(const char *path)
return path_stat(path, IS_VALID, NULL); 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)) if (path_stat(path, IS_VALID, &filesize))
return filesize; return filesize;

View File

@ -46,7 +46,7 @@ bool path_is_character_special(const char *path);
bool path_is_valid(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: * path_mkdir_norecurse: