Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Mac OS X: Fixed build when compiling without Cocoa support.
Browse files Browse the repository at this point in the history
Thanks to Martin Gerhardy for the patch!
  • Loading branch information
icculus committed Nov 6, 2011
1 parent 58b6bff commit 244d241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_assert.c
Expand Up @@ -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);
Expand Down

0 comments on commit 244d241

Please sign in to comment.