diff src/video/quartz/SDL_QuartzEvents.m @ 4251:ed5e32187eec SDL-1.2

Better fix from Max Horn
author Sam Lantinga <slouken@libsdl.org>
date Sun, 27 Sep 2009 19:23:04 +0000
parents 8fc98498e4f0
children
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzEvents.m	Sun Sep 27 06:20:27 2009 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Sun Sep 27 19:23:04 2009 +0000
@@ -31,7 +31,13 @@
 /*
  * On Leopard, this is missing from the 64-bit headers
  */
-#ifndef UsrActivity
+#if defined(__LP64__) && !defined(__POWER__)
+/*
+ * Workaround for a bug in the 10.5 SDK: By accident, OSService.h does
+ * not include Power.h at all when compiling in 64bit mode. This has
+ * been fixed in 10.6, but for 10.5, we manually define UsrActivity
+ * to ensure compilation works.
+ */
 #define UsrActivity 1
 #endif