Better fix from Max Horn SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Sep 2009 19:23:04 +0000
branchSDL-1.2
changeset 4251 ed5e32187eec
parent 4250 c483b474b1cf
child 4252 052dc40d917f
Better fix from Max Horn
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