Commit 432ee7d8ad389cbee82964f18e8d7ab62b8ac097

Sam Lantinga 2021-09-22T09:29:21

Fixed building SDL_dynapi.c without stdio support

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 8fc5431..013dbc9 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