From 432ee7d8ad389cbee82964f18e8d7ab62b8ac097 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 22 Sep 2021 09:29:21 -0700 Subject: [PATCH] Fixed building SDL_dynapi.c without stdio support --- src/dynapi/SDL_dynapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c index 8fc5431b4c..013dbc90de 100644 --- a/src/dynapi/SDL_dynapi.c +++ b/src/dynapi/SDL_dynapi.c @@ -270,7 +270,7 @@ static void dynapi_warn(const char *msg) /* SDL_ShowSimpleMessageBox() is a too heavy for here. */ #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) MessageBoxA(NULL, msg, caption, MB_OK | MB_ICONERROR); - #else + #elif defined(HAVE_STDIO_H) fprintf(stderr, "\n\n%s\n%s\n\n", caption, msg); fflush(stderr); #endif