Mac OS X: Fixed build when compiling without Cocoa support.

Thanks to Martin Gerhardy for the patch!
This commit is contained in:
Ryan C. Gordon 2011-11-06 17:05:48 -05:00
parent c33e36f58b
commit 5054c0e57d

View File

@ -319,7 +319,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
#ifdef __WIN32__
state = SDL_PromptAssertion_windows(data);
#elif __MACOSX__
#elif defined __MACOSX__ && defined SDL_VIDEO_DRIVER_COCOA
/* This has to be done in an Objective-C (*.m) file, so we call out. */
extern SDL_assert_state SDL_PromptAssertion_cocoa(const SDL_assert_data *);
state = SDL_PromptAssertion_cocoa(data);