# HG changeset patch # User Sam Lantinga # Date 1147317714 0 # Node ID e6de7e5fd451990ce201472be8f0b3d8d884fbb2 # Parent 4c270c3a88ed070ed867c8f096d7d7ef35c6d47a Fixed bug #226 Just to make it compile with old CodeWarrior. diff -r 4c270c3a88ed -r e6de7e5fd451 src/video/macdsp/SDL_dspvideo.c --- a/src/video/macdsp/SDL_dspvideo.c Thu May 11 03:19:03 2006 +0000 +++ b/src/video/macdsp/SDL_dspvideo.c Thu May 11 03:21:54 2006 +0000 @@ -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); diff -r 4c270c3a88ed -r e6de7e5fd451 src/video/macrom/SDL_romvideo.c --- a/src/video/macrom/SDL_romvideo.c Thu May 11 03:19:03 2006 +0000 +++ b/src/video/macrom/SDL_romvideo.c Thu May 11 03:21:54 2006 +0000 @@ -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;