src/video/SDL_video.c
changeset 6617 3a92812e0c91
parent 6611 5c8b5b03ad8a
child 6619 42214b6959c5
     1.1 --- a/src/video/SDL_video.c	Tue Oct 30 12:30:02 2012 -0700
     1.2 +++ b/src/video/SDL_video.c	Tue Oct 30 12:31:26 2012 -0700
     1.3 @@ -2841,8 +2841,11 @@
     1.4      return SDL_FALSE;
     1.5  }
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_COCOA
     1.8 +#include "cocoa/SDL_cocoamessagebox.h"
     1.9 +#endif
    1.10  #if SDL_VIDEO_DRIVER_X11
    1.11 -extern int X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
    1.12 +#include "x11/SDL_x11messagebox.h"
    1.13  #endif
    1.14  
    1.15  int
    1.16 @@ -2860,6 +2863,11 @@
    1.17      }
    1.18  
    1.19      /* It's completely fine to call this function before video is initialized */
    1.20 +#if SDL_VIDEO_DRIVER_COCOA
    1.21 +    if (Cocoa_ShowMessageBox(messageboxdata, buttonid) == 0) {
    1.22 +        return 0;
    1.23 +    }
    1.24 +#endif
    1.25  #if SDL_VIDEO_DRIVER_X11
    1.26      if (X11_ShowMessageBox(messageboxdata, buttonid) == 0) {
    1.27          return 0;