From: Michael Jerris Date: Sat, 26 Jan 2008 04:07:48 +0000 (+0000) Subject: fix windows build X-Git-Tag: v1.0-rc1~551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e39aa9bd058d35612aeaf5a45aa2023897a4a7ac;p=thirdparty%2Ffreeswitch.git fix windows build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7367 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index 25039f29d0..d2e11477ee 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -190,11 +190,15 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit int aok = can_write(handle, 5); if (aok) { const char *msg = "Failed to write to the console! Logging disabled! RE-enable with the 'console loglevel' command\n"; +#ifdef WIN32 + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg); +#else if (COLORIZE) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s", COLORS[1], msg, SWITCH_SEQ_DEFAULT_COLOR); } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg); } +#endif failed_write = 0; } }