src/SDL_log.c
changeset 8325 33cbbdd796ec
parent 6138 4c64952a58fb
child 8337 4a67a3cca43d
equal deleted inserted replaced
8324:285388934ded 8325:33cbbdd796ec
    26 
    26 
    27 #if HAVE_STDIO_H
    27 #if HAVE_STDIO_H
    28 #include <stdio.h>
    28 #include <stdio.h>
    29 #endif
    29 #endif
    30 
    30 
    31 #if defined(__WIN32__)
    31 #if defined(__WIN32__) || defined(__WINRT__)
    32 #include "core/windows/SDL_windows.h"
    32 #include "core/windows/SDL_windows.h"
    33 #elif defined(__ANDROID__)
    33 #elif defined(__ANDROID__)
    34 #include <android/log.h>
    34 #include <android/log.h>
    35 #endif
    35 #endif
    36 
    36 
   278 
   278 
   279 static void
   279 static void
   280 SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
   280 SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
   281               const char *message)
   281               const char *message)
   282 {
   282 {
   283 #if defined(__WIN32__)
   283 #if defined(__WIN32__) || defined(__WINRT__)
   284     /* Way too many allocations here, urgh */
   284     /* Way too many allocations here, urgh */
   285     {
   285     {
   286         char *output;
   286         char *output;
   287         size_t length;
   287         size_t length;
   288         LPTSTR tstr;
   288         LPTSTR tstr;