diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c index 38672a594d..ae20002a7a 100644 --- a/src/file/SDL_rwops.c +++ b/src/file/SDL_rwops.c @@ -537,7 +537,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;