Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

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

Thanks to Martin Gerhardy for the patch!
  • Loading branch information
icculus committed Nov 6, 2011
1 parent 58b6bff commit 244d2416fde640f9d6e906d48c44ff30585ad8e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SDL_assert.c
@@ -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);

0 comments on commit 244d241

Please sign in to comment.