src/video/cocoa/SDL_cocoamessagebox.m
changeset 8986 1c81316ac642
parent 8884 a13802298fdd
child 9087 eef2e43f60d1
     1.1 --- a/src/video/cocoa/SDL_cocoamessagebox.m	Mon Jul 07 11:44:14 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoamessagebox.m	Mon Jul 07 12:48:25 2014 -0700
     1.3 @@ -22,13 +22,6 @@
     1.4  
     1.5  #if SDL_VIDEO_DRIVER_COCOA
     1.6  
     1.7 -#if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
     1.8 -#include <altivec.h>
     1.9 -#undef bool
    1.10 -#undef vector
    1.11 -#undef pixel
    1.12 -#endif
    1.13 -
    1.14  #include "SDL_events.h"
    1.15  #include "SDL_timer.h"
    1.16  #include "SDL_messagebox.h"
    1.17 @@ -125,13 +118,10 @@
    1.18  
    1.19      int returnValue = 0;
    1.20      NSInteger clicked = presenter->clicked;
    1.21 -    if (clicked >= NSAlertFirstButtonReturn)
    1.22 -    {
    1.23 +    if (clicked >= NSAlertFirstButtonReturn) {
    1.24          clicked -= NSAlertFirstButtonReturn;
    1.25          *buttonid = buttons[clicked].buttonid;
    1.26 -    }
    1.27 -    else
    1.28 -    {
    1.29 +    } else {
    1.30          returnValue = SDL_SetError("Did not get a valid `clicked button' id: %ld", (long)clicked);
    1.31      }
    1.32