mirror of
https://github.com/yawut/SDL.git
synced 2026-04-20 15:47:29 -05:00
Mac OS X: Fixed build when compiling without Cocoa support.
Thanks to Martin Gerhardy for the patch!
This commit is contained in:
parent
c33e36f58b
commit
5054c0e57d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user