From 130b27c1163c9342a17c0065d00f49d6c841740e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Sep 2009 19:23:04 +0000 Subject: [PATCH] Better fix from Max Horn --- src/video/quartz/SDL_QuartzEvents.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/video/quartz/SDL_QuartzEvents.m b/src/video/quartz/SDL_QuartzEvents.m index 1178cdf85..0e4b07cb3 100644 --- a/src/video/quartz/SDL_QuartzEvents.m +++ b/src/video/quartz/SDL_QuartzEvents.m @@ -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