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;