changeset 3120:1282a042d530

Temporary workaround for building on 64-bit Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 07 May 2009 12:27:42 +0000
parents f78ed7625325
children 4a28c7c985b2
files src/video/cocoa/SDL_cocoaevents.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m	Thu May 07 12:04:53 2009 +0000
+++ b/src/video/cocoa/SDL_cocoaevents.m	Thu May 07 12:27:42 2009 +0000
@@ -20,10 +20,12 @@
     slouken@libsdl.org
 */
 #include "SDL_config.h"
+#include "SDL_timer.h"
 
 #include "SDL_cocoavideo.h"
 #include "../../events/SDL_events_c.h"
 
+
 /* setAppleMenu disappeared from the headers in 10.4 */
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
 @interface NSApplication(NSAppleMenu)
@@ -165,6 +167,8 @@
     NSAutoreleasePool *pool;
 
     /* Update activity every 30 seconds to prevent screensaver */
+    /* FIXME: This define isn't available with 64-bit Mac OS X? */
+#ifdef UsrActivity
     if (_this->suspend_screensaver) {
         SDL_VideoData *data = (SDL_VideoData *)_this->driverdata;
         Uint32 now = SDL_GetTicks();
@@ -174,6 +178,7 @@
             data->screensaver_activity = now;
         }
     }
+#endif
 
     pool = [[NSAutoreleasePool alloc] init];
     while ([NSApp isRunning]) {