mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:45:32 +00:00
SDL_rwops.c (SDL_IsRegularFile): fix WinRT build failure due to S_ISREG
(cherry picked from commit fcd1c155ccec7ac57b77cbc8571a321a5954c2cb)
This commit is contained in:
parent
3bf60755cb
commit
fd08ca3823
|
@ -529,7 +529,7 @@ static SDL_bool SDL_IsRegularFile(FILE *f)
|
||||||
{
|
{
|
||||||
#ifdef __WINRT__
|
#ifdef __WINRT__
|
||||||
struct __stat64 st;
|
struct __stat64 st;
|
||||||
if (_fstat64(_fileno(f), &st) < 0 || !S_ISREG(st.st_mode)) {
|
if (_fstat64(_fileno(f), &st) < 0 || (st.st_mode & _S_IFMT) != _S_IFREG) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue