src/SDL_log.c
changeset 7307 5d6b7b9432d3
parent 7292 fdf42e4cdcec
child 7343 faf0d8c7dbec
equal deleted inserted replaced
7306:1516fe08e6ec 7307:5d6b7b9432d3
   367         char tag[32];
   367         char tag[32];
   368 
   368 
   369         SDL_snprintf(tag, SDL_arraysize(tag), "SDL/%s", GetCategoryPrefix(category));
   369         SDL_snprintf(tag, SDL_arraysize(tag), "SDL/%s", GetCategoryPrefix(category));
   370         __android_log_write(SDL_android_priority[priority], tag, message);
   370         __android_log_write(SDL_android_priority[priority], tag, message);
   371     }
   371     }
   372 #elif defined(__APPLE__)
   372 #elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA)
       
   373     /* Technically we don't need SDL_VIDEO_DRIVER_COCOA, but that's where this function is defined for now.
       
   374     */
   373     extern void SDL_NSLog(const char *text);
   375     extern void SDL_NSLog(const char *text);
   374     {
   376     {
   375         char *text;
   377         char *text;
   376 
   378 
   377         text = SDL_stack_alloc(char, SDL_MAX_LOG_MESSAGE);
   379         text = SDL_stack_alloc(char, SDL_MAX_LOG_MESSAGE);