From 20ba12c03725dd29c5614327505a43473b622df8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 11 May 2006 03:21:54 +0000 Subject: [PATCH] Fixed bug #226 Just to make it compile with old CodeWarrior. --- src/video/macdsp/SDL_dspvideo.c | 2 +- src/video/macrom/SDL_romvideo.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/video/macdsp/SDL_dspvideo.c b/src/video/macdsp/SDL_dspvideo.c index f0df4e920..a1150d777 100644 --- a/src/video/macdsp/SDL_dspvideo.c +++ b/src/video/macdsp/SDL_dspvideo.c @@ -682,7 +682,7 @@ static int DSp_ConfirmSwitch () { if (dialog == NULL) return (0); -#if TARGET_API_CARBON +#if TARGET_API_MAC_CARBON SetPort (GetDialogPort(dialog)); #else SetPort ((WindowPtr) dialog); diff --git a/src/video/macrom/SDL_romvideo.c b/src/video/macrom/SDL_romvideo.c index 32cbbb9e6..fbe65fd9a 100644 --- a/src/video/macrom/SDL_romvideo.c +++ b/src/video/macrom/SDL_romvideo.c @@ -35,6 +35,7 @@ #include #endif #else +#include #include #include #include @@ -637,12 +638,12 @@ static void ROM_WindowUpdate(_THIS, int numrects, SDL_Rect *rects) SetPortWindowPort(SDL_Window); thePort = GetWindowPort(SDL_Window); memworld = (GWorldPtr)GetWRefCon(SDL_Window); -#if TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld); #else memBits = &((GrafPtr)memworld)->portBits; #endif -#if TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS winBits = GetPortBitMapForCopyBits(thePort); #else winBits = &SDL_Window->portBits;