Fixed Xcode warnings on macOS

This commit is contained in:
Sam Lantinga 2022-09-16 09:44:39 -07:00
parent 910d499c54
commit 5892ed4373
2 changed files with 6 additions and 10 deletions

View file

@ -486,7 +486,8 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
fclose (pFile);
}
#endif
#if HAVE_STDIO_H
#if HAVE_STDIO_H && \
!(defined(__APPLE__) && (defined(SDL_VIDEO_DRIVER_COCOA) || defined(SDL_VIDEO_DRIVER_UIKIT)))
fprintf(stderr, "%s: %s\n", SDL_priority_prefixes[priority], message);
#if __NACL__
fflush(stderr);