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
|
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;
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue