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 6051 cb1f941ce38e
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
--- a/src/SDL_assert.c	Thu Nov 03 11:51:47 2011 -0400
+++ b/src/SDL_assert.c	Sun Nov 06 17:05:48 2011 -0500
@@ -319,7 +319,7 @@
 #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);