Mac OS X: Fixed build when compiling without Cocoa support.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 06 Nov 2011 17:05:48 -0500
changeset 6051cb1f941ce38e
parent 6046 3b33b82cdbac
child 6052 263ef1203b76
Mac OS X: Fixed build when compiling without Cocoa support.

Thanks to Martin Gerhardy for the patch!
src/SDL_assert.c
     1.1 --- a/src/SDL_assert.c	Thu Nov 03 11:51:47 2011 -0400
     1.2 +++ b/src/SDL_assert.c	Sun Nov 06 17:05:48 2011 -0500
     1.3 @@ -319,7 +319,7 @@
     1.4  #ifdef __WIN32__
     1.5      state = SDL_PromptAssertion_windows(data);
     1.6  
     1.7 -#elif __MACOSX__
     1.8 +#elif defined __MACOSX__ && defined SDL_VIDEO_DRIVER_COCOA
     1.9      /* This has to be done in an Objective-C (*.m) file, so we call out. */
    1.10      extern SDL_assert_state SDL_PromptAssertion_cocoa(const SDL_assert_data *);
    1.11      state = SDL_PromptAssertion_cocoa(data);