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.
This commit is contained in:
Kevin Shanahan 2013-05-03 14:11:41 +09:30
parent 908e617900
commit 80d6f659b2
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#if SDL_VIDEO_DRIVER_COCOA
#if defined(__APPLE__) && defined(__POWERPC__)
#if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
#include <altivec.h>
#undef bool
#undef vector

View File

@ -22,7 +22,7 @@
#if SDL_VIDEO_DRIVER_COCOA
#if defined(__APPLE__) && defined(__POWERPC__)
#if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
#include <altivec.h>
#undef bool
#undef vector