[polypaudio-commits] r838 - /trunk/src/polypcore/log.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu May 11 04:03:18 PDT 2006
Author: ossman
Date: Thu May 11 13:03:17 2006
New Revision: 838
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=838&root=polypaudio&view=rev
Log:
ANSI codes aren't supported on Windows terminals.
Modified:
trunk/src/polypcore/log.c
Modified: trunk/src/polypcore/log.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/log.c?rev=838&root=polypaudio&r1=837&r2=838&view=diff
==============================================================================
--- trunk/src/polypcore/log.c (original)
+++ trunk/src/polypcore/log.c Thu May 11 13:03:17 2006
@@ -99,7 +99,8 @@
switch (log_target) {
case PA_LOG_STDERR: {
const char *prefix = "", *suffix = "";
-
+
+#ifndef OS_IS_WIN32
/* Yes indeed. Useless, but fun! */
if (isatty(STDERR_FILENO)) {
if (level <= PA_LOG_ERROR) {
@@ -110,6 +111,8 @@
suffix = "\x1B[0m";
}
}
+#endif
+
fprintf(stderr, "%s%s%s\n", prefix, t, suffix);
break;
}
More information about the pulseaudio-commits
mailing list