src/SDL_log.c
changeset 8478 337b5dc0797b
parent 8477 ad08f0d710f3
child 8535 e8ee0708ef5c
--- a/src/SDL_log.c	Mon Aug 12 22:29:55 2013 -0400
+++ b/src/SDL_log.c	Tue Aug 13 20:09:52 2013 -0400
@@ -322,6 +322,8 @@
         char *output;
         size_t length;
         LPTSTR tstr;
+
+#ifndef __WINRT__
         BOOL attachResult;
         DWORD attachError;
         unsigned long charsWritten; 
@@ -353,6 +355,7 @@
                         stderrHandle = GetStdHandle(STD_ERROR_HANDLE);
                 }
         }
+#endif /* ifndef __WINRT__ */
 
         length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1;
         output = SDL_stack_alloc(char, length);
@@ -362,6 +365,7 @@
         /* Output to debugger */
         OutputDebugString(tstr);
        
+#ifndef __WINRT__
         /* Screen output to stderr, if console was attached. */
         if (consoleAttached == 1) {
                 if (!WriteConsole(stderrHandle, tstr, lstrlen(tstr), &charsWritten, NULL)) {
@@ -371,6 +375,7 @@
                     OutputDebugString(TEXT("Insufficient heap memory to write message"));
                 }
         }
+#endif /* ifndef __WINRT__ */
 
         SDL_free(tstr);
         SDL_stack_free(output);