summaryrefslogtreecommitdiff
path: root/src/video/cocoa/SDL_cocoawindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa/SDL_cocoawindow.m')
-rw-r--r--src/video/cocoa/SDL_cocoawindow.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index f21addc8..f8956e08 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -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 @@ static __inline__ void ConvertNSRect(NSRect *r)
- (void)mouseEntered:(NSEvent *)theEvent
{
- SDL_Mouse *mouse = SDL_GetMouse();
-
SDL_SetMouseFocus(_data->window);
SDL_SetCursor(NULL);
@@ -991,4 +991,6 @@ Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
}
}
+#endif /* SDL_VIDEO_DRIVER_COCOA */
+
/* vi: set ts=4 sw=4 expandtab: */