Fix compile on Xcode 3.1 PPC + Altivec
authorKevin Shanahan <kmshanah@disenchant.net>
Fri, 03 May 2013 14:11:41 +0930
changeset 7140e1896b95a8a7
parent 7139 dd722e7460c5
child 7141 e276777b4247
Fix compile on Xcode 3.1 PPC + Altivec

-faltivec is given on the command line, so #include <altivec.h> is ignored in
this case and #undef'ing vector causes compile to fail.
src/video/cocoa/SDL_cocoamessagebox.m
src/video/cocoa/SDL_cocoavideo.m
     1.1 --- a/src/video/cocoa/SDL_cocoamessagebox.m	Thu May 02 21:40:59 2013 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoamessagebox.m	Fri May 03 14:11:41 2013 +0930
     1.3 @@ -22,7 +22,7 @@
     1.4  
     1.5  #if SDL_VIDEO_DRIVER_COCOA
     1.6  
     1.7 -#if defined(__APPLE__) && defined(__POWERPC__)
     1.8 +#if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
     1.9  #include <altivec.h>
    1.10  #undef bool
    1.11  #undef vector
     2.1 --- a/src/video/cocoa/SDL_cocoavideo.m	Thu May 02 21:40:59 2013 -0400
     2.2 +++ b/src/video/cocoa/SDL_cocoavideo.m	Fri May 03 14:11:41 2013 +0930
     2.3 @@ -22,7 +22,7 @@
     2.4  
     2.5  #if SDL_VIDEO_DRIVER_COCOA
     2.6  
     2.7 -#if defined(__APPLE__) && defined(__POWERPC__)
     2.8 +#if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
     2.9  #include <altivec.h>
    2.10  #undef bool
    2.11  #undef vector