src/SDL_log.c
changeset 7307 5d6b7b9432d3
parent 7292 fdf42e4cdcec
child 7343 faf0d8c7dbec
--- a/src/SDL_log.c	Tue Jun 11 08:37:03 2013 -0700
+++ b/src/SDL_log.c	Thu Jun 13 22:10:10 2013 -0700
@@ -369,7 +369,9 @@
         SDL_snprintf(tag, SDL_arraysize(tag), "SDL/%s", GetCategoryPrefix(category));
         __android_log_write(SDL_android_priority[priority], tag, message);
     }
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA)
+    /* Technically we don't need SDL_VIDEO_DRIVER_COCOA, but that's where this function is defined for now.
+    */
     extern void SDL_NSLog(const char *text);
     {
         char *text;