mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
path_get_size - change non-portable ssize_t to int32_t
This commit is contained in:
parent
90549903b7
commit
1a2da93c9c
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user