changeset 1810:4c270c3a88ed

Fixed bug #225 Making the old code limp along, for Carbon builds.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 11 May 2006 03:19:03 +0000
parents 41ab83bec62f
children e6de7e5fd451
files src/timer/macos/FastTimes.c src/timer/macos/SDL_systimer.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/timer/macos/FastTimes.c	Thu May 11 03:08:39 2006 +0000
+++ b/src/timer/macos/FastTimes.c	Thu May 11 03:19:03 2006 +0000
@@ -19,6 +19,11 @@
 
 #include "FastTimes.h"
 
+#ifdef TARGET_CPU_PPC
+#undef GENERATINGPOWERPC /* stop whining */
+#define GENERATINGPOWERPC TARGET_CPU_PPC
+#endif
+
 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
 /*
--- a/src/timer/macos/SDL_systimer.c	Thu May 11 03:08:39 2006 +0000
+++ b/src/timer/macos/SDL_systimer.c	Thu May 11 03:19:03 2006 +0000
@@ -36,6 +36,10 @@
 
 #include "FastTimes.h"
 
+#ifdef TARGET_API_MAC_CARBON
+#define NewTimerProc NewTimerUPP
+#endif
+
 #define MS_PER_TICK	(1000.0/60.0)		/* MacOS tick = 1/60 second */
 
 
@@ -67,7 +71,11 @@
 
         stop = SDL_GetTicks() + ms;
         do {
+            #ifdef TARGET_API_MAC_CARBON
+                MPYield();
+            #else
                 SystemTask();
+            #endif
 
                 now = SDL_GetTicks();