allow MacOS build without SDL_FILE

This commit is contained in:
pionere 2022-01-12 10:02:52 +01:00 committed by Ryan C. Gordon
parent b1b2ad725c
commit 176941a4fb
2 changed files with 1 additions and 3 deletions

View file

@ -833,7 +833,7 @@ SDL_RWFromFile(const char *file, const char *mode)
rwops->type = SDL_RWOPS_VITAFILE;
#elif HAVE_STDIO_H
{
#ifdef __APPLE__
#if __APPLE__ && !SDL_FILE_DISABLED // TODO: add dummy?
FILE *fp = SDL_OpenFPFromBundleOrFallback(file, mode);
#elif __WINRT__
FILE *fp = NULL;