Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix compile on Xcode 3.1 PPC + Altivec
Browse files Browse the repository at this point in the history
-faltivec is given on the command line, so #include <altivec.h> is ignored in
this case and #undef'ing vector causes compile to fail.
  • Loading branch information
Kevin Shanahan committed May 3, 2013
1 parent abe6516 commit 36e5ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamessagebox.m
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoavideo.m
Expand Up @@ -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
Expand Down

0 comments on commit 36e5ee8

Please sign in to comment.