Fixed bug #806 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 26 Sep 2009 11:42:39 +0000
branchSDL-1.2
changeset 4244 8fc98498e4f0
parent 4243 22aec2e85b86
child 4245 0319c84d274d
Fixed bug #806 Max Horn 2009-09-24 13:16:05 PDT Current SDL 1.2 SVN luckily builds on several systems now: 10.4 (PPC and 32bit intel), 10.5 (32 bit) and 10.6 (32 bit). However, it fails to build on 10.5 in 64 bit mode
src/video/quartz/SDL_QuartzEvents.m
--- a/src/video/quartz/SDL_QuartzEvents.m	Sat Sep 26 10:37:28 2009 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Sat Sep 26 11:42:39 2009 +0000
@@ -28,6 +28,13 @@
 #include <IOKit/pwr_mgt/IOPMLib.h> /* For wake from sleep detection */
 #include "SDL_QuartzKeys.h"
 
+/*
+ * On Leopard, this is missing from the 64-bit headers
+ */
+#ifndef UsrActivity
+#define UsrActivity 1
+#endif
+
 /* 
  * In Panther, this header defines device dependent masks for 
  * right side keys. These definitions only exist in Panther, but