From be1063ce192df92901f72c426b157d0b82998b7a Mon Sep 17 00:00:00 2001 From: icculus Date: Wed, 16 Sep 2009 12:54:12 +0000 Subject: Cleanups for the Mac error dialog, after a code review from tma. - Don't expose the function in sys_local.h (it would be static if we could). - Don't call it Sys_Cocoa_*; it'd be nonsense with q3a's naming conventions. git-svn-id: svn://svn.icculus.org/quake3/trunk@1631 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sys/sys_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'code/sys/sys_unix.c') diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index 641770c..5ed0721 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -511,8 +511,10 @@ void Sys_ErrorDialog( const char *error ) Sys_Print( va( "%s\n", error ) ); #if defined(MACOS_X) && !DEDICATED + /* This function has to be in a separate file, compiled as Objective-C. */ + extern void Cocoa_MsgBox( const char *text ); if (!com_dedicated || !com_dedicated->integer) - Sys_Cocoa_MsgBox(error); + Cocoa_MsgBox(error); #endif /* make sure the write path for the crashlog exists... */ -- cgit v1.2.3