aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/sys/sys_unix.c')
-rw-r--r--code/sys/sys_unix.c4
1 files changed, 3 insertions, 1 deletions
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... */