mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-16 19:18:55 +00:00
Skip IsRegularFileOrPipe() check on Emscripten
The sandbox guarantees that this will be true. Fixes https://github.com/libsdl-org/SDL/issues/12108 (backported from from commit1c7cc60286) (cherry picked from commit0efe8892d6)
This commit is contained in:
parent
18ecd2ccad
commit
97002d81a7
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ static SDL_bool IsRegularFileOrPipe(FILE *f)
|
|||
!((st.st_mode & _S_IFMT) == _S_IFREG || (st.st_mode & _S_IFMT) == _S_IFIFO)) {
|
||||
return SDL_FALSE;
|
||||
}
|
||||
#else
|
||||
#elif !defined __EMSCRIPTEN__
|
||||
struct stat st;
|
||||
if (fstat(fileno(f), &st) < 0 || !(S_ISREG(st.st_mode) || S_ISFIFO(st.st_mode))) {
|
||||
return SDL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue