mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	SDL_rwops.c (SDL_IsRegularFile): fix WinRT build failure due to S_ISREG
(cherry picked from commit fcd1c155cc)
			
			
This commit is contained in:
		| @@ -465,7 +465,7 @@ static SDL_bool SDL_IsRegularFile(FILE *f) | |||||||
| { | { | ||||||
|     #ifdef SDL_PLATFORM_WINRT |     #ifdef SDL_PLATFORM_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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozkan Sezer
					Ozkan Sezer