From abe9271065c0b4306c389a8c6219bc894bd31ba2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 20 Nov 2016 21:29:27 -0800 Subject: [PATCH] Fixed warning building under mingw, patch contributed by Sylvain --- src/SDL_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL_log.c b/src/SDL_log.c index 760cb13de..82a96cefd 100644 --- a/src/SDL_log.c +++ b/src/SDL_log.c @@ -304,7 +304,7 @@ SDL_LogMessageV(int category, SDL_LogPriority priority, const char *fmt, va_list SDL_stack_free(message); } -#if defined(__WIN32__) +#if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__) /* Flag tracking the attachment of the console: 0=unattached, 1=attached, -1=error */ static int consoleAttached = 0;