src/SDL_log.c
changeset 8478 337b5dc0797b
parent 8477 ad08f0d710f3
child 8535 e8ee0708ef5c
     1.1 --- a/src/SDL_log.c	Mon Aug 12 22:29:55 2013 -0400
     1.2 +++ b/src/SDL_log.c	Tue Aug 13 20:09:52 2013 -0400
     1.3 @@ -322,6 +322,8 @@
     1.4          char *output;
     1.5          size_t length;
     1.6          LPTSTR tstr;
     1.7 +
     1.8 +#ifndef __WINRT__
     1.9          BOOL attachResult;
    1.10          DWORD attachError;
    1.11          unsigned long charsWritten; 
    1.12 @@ -353,6 +355,7 @@
    1.13                          stderrHandle = GetStdHandle(STD_ERROR_HANDLE);
    1.14                  }
    1.15          }
    1.16 +#endif /* ifndef __WINRT__ */
    1.17  
    1.18          length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1;
    1.19          output = SDL_stack_alloc(char, length);
    1.20 @@ -362,6 +365,7 @@
    1.21          /* Output to debugger */
    1.22          OutputDebugString(tstr);
    1.23         
    1.24 +#ifndef __WINRT__
    1.25          /* Screen output to stderr, if console was attached. */
    1.26          if (consoleAttached == 1) {
    1.27                  if (!WriteConsole(stderrHandle, tstr, lstrlen(tstr), &charsWritten, NULL)) {
    1.28 @@ -371,6 +375,7 @@
    1.29                      OutputDebugString(TEXT("Insufficient heap memory to write message"));
    1.30                  }
    1.31          }
    1.32 +#endif /* ifndef __WINRT__ */
    1.33  
    1.34          SDL_free(tstr);
    1.35          SDL_stack_free(output);