# HG changeset patch # User Sam Lantinga # Date 1254079384 0 # Node ID ed5e32187eecf3d37e751f660b63f0ce9429693b # Parent c483b474b1cfcbe6c5f90927e76faef7a5a67c75 Better fix from Max Horn diff -r c483b474b1cf -r ed5e32187eec src/video/quartz/SDL_QuartzEvents.m --- 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