Index: src/video/macdsp/SDL_dspvideo.c =================================================================== --- src/video/macdsp/SDL_dspvideo.c (revision 2376) +++ src/video/macdsp/SDL_dspvideo.c (arbetskopia) @@ -682,7 +682,7 @@ if (dialog == NULL) return (0); -#if TARGET_API_CARBON +#if TARGET_API_MAC_CARBON SetPort (GetDialogPort(dialog)); #else SetPort ((WindowPtr) dialog); Index: src/video/macrom/SDL_romvideo.c =================================================================== --- src/video/macrom/SDL_romvideo.c (revision 2376) +++ src/video/macrom/SDL_romvideo.c (arbetskopia) @@ -35,6 +35,7 @@ #include #endif #else +#include #include #include #include @@ -637,12 +638,12 @@ 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;