WinRT: made SDL_Log output to Visual C++'s debug console (via existing Win32 code in SDL)
authorDavid Ludwig <dludwig@pobox.com>
Sat, 27 Oct 2012 22:15:54 -0400
changeset 832533cbbdd796ec
parent 8324 285388934ded
child 8326 22db28fb8099
WinRT: made SDL_Log output to Visual C++'s debug console (via existing Win32 code in SDL)
src/SDL_log.c
     1.1 --- a/src/SDL_log.c	Sat Oct 27 22:03:31 2012 -0400
     1.2 +++ b/src/SDL_log.c	Sat Oct 27 22:15:54 2012 -0400
     1.3 @@ -28,7 +28,7 @@
     1.4  #include <stdio.h>
     1.5  #endif
     1.6  
     1.7 -#if defined(__WIN32__)
     1.8 +#if defined(__WIN32__) || defined(__WINRT__)
     1.9  #include "core/windows/SDL_windows.h"
    1.10  #elif defined(__ANDROID__)
    1.11  #include <android/log.h>
    1.12 @@ -280,7 +280,7 @@
    1.13  SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
    1.14                const char *message)
    1.15  {
    1.16 -#if defined(__WIN32__)
    1.17 +#if defined(__WIN32__) || defined(__WINRT__)
    1.18      /* Way too many allocations here, urgh */
    1.19      {
    1.20          char *output;