Fixed warning building under mingw, patch contributed by Sylvain
authorSam Lantinga
Sun, 20 Nov 2016 21:29:27 -0800
changeset 106375e3ac176d5a8
parent 10636 e692b9291c81
child 10638 d11daa346140
Fixed warning building under mingw, patch contributed by Sylvain
src/SDL_log.c
     1.1 --- a/src/SDL_log.c	Sun Nov 20 21:26:56 2016 -0800
     1.2 +++ b/src/SDL_log.c	Sun Nov 20 21:29:27 2016 -0800
     1.3 @@ -304,7 +304,7 @@
     1.4      SDL_stack_free(message);
     1.5  }
     1.6  
     1.7 -#if defined(__WIN32__)
     1.8 +#if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__)
     1.9  /* Flag tracking the attachment of the console: 0=unattached, 1=attached, -1=error */
    1.10  static int consoleAttached = 0;
    1.11