소스 검색

Fixed building SDL_dynapi.c without stdio support

Sam Lantinga 5 년 전
부모
커밋
432ee7d8ad
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/dynapi/SDL_dynapi.c

+ 1 - 1
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