src/video/cocoa/SDL_cocoawindow.m
changeset 6044 35448a5ea044
parent 5873 be86fd8dca58
child 6108 f3c34d321289
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Oct 31 03:06:32 2011 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Oct 31 05:56:58 2011 -0400
@@ -20,6 +20,8 @@
 */
 #include "SDL_config.h"
 
+#if SDL_VIDEO_DRIVER_COCOA
+
 #include "SDL_syswm.h"
 #include "SDL_timer.h"  /* For SDL_GetTicks() */
 #include "../SDL_sysvideo.h"
@@ -277,8 +279,6 @@
 
 - (void)mouseEntered:(NSEvent *)theEvent
 {
-    SDL_Mouse *mouse = SDL_GetMouse();
-
     SDL_SetMouseFocus(_data->window);
 
     SDL_SetCursor(NULL);
@@ -991,4 +991,6 @@
     }
 }
 
+#endif /* SDL_VIDEO_DRIVER_COCOA */
+
 /* vi: set ts=4 sw=4 expandtab: */