r276 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu May 17 12:06:37 EDT 2007
Author: icculus
Date: 2007-05-17 12:06:37 -0400 (Thu, 17 May 2007)
New Revision: 276
Modified:
trunk/platform_unix.c
Log:
Mac OS X should log to stdout so it shows up in Console application.
Modified: trunk/platform_unix.c
===================================================================
--- trunk/platform_unix.c 2007-05-17 06:25:45 UTC (rev 275)
+++ trunk/platform_unix.c 2007-05-17 16:06:37 UTC (rev 276)
@@ -52,6 +52,7 @@
#endif
#include "platform.h"
+#include "gui.h"
static struct timeval startup_time;
@@ -590,6 +591,13 @@
void MojoPlatform_log(const char *str)
{
syslog(LOG_USER | LOG_INFO, "%s", str);
+
+#if PLATFORM_MACOSX
+ // put to stdout too, if this isn't the stdio UI.
+ // This will let the info show up in /Applications/Utilities/Console.app
+ if ((GGui != NULL) && (strcmp(GGui->name(), "stdio") != 0))
+ printf("%s\n", str);
+#endif
} // MojoPlatform_log
More information about the mojosetup-commits
mailing list