summaryrefslogtreecommitdiffstats
path: root/src/polypcore
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-05-11 11:03:17 +0000
committerPierre Ossman <ossman@cendio.se>2006-05-11 11:03:17 +0000
commit18c5340fb48bb6a56b8a9761628e24d2b236193b (patch)
treea3a2cf5b46ad8840991872b0b72298c4eafe464f /src/polypcore
parent6d2a9367bafb8ae4a98fe725bcb52b021f0fa4e6 (diff)
ANSI codes aren't supported on Windows terminals.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@838 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore')
-rw-r--r--src/polypcore/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/polypcore/log.c b/src/polypcore/log.c
index 29c4c480..9c9ed2fd 100644
--- a/src/polypcore/log.c
+++ b/src/polypcore/log.c
@@ -99,7 +99,8 @@ void pa_log_levelv(pa_log_level_t level, const char *format, va_list ap) {
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 @@ void pa_log_levelv(pa_log_level_t level, const char *format, va_list ap) {
suffix = "\x1B[0m";
}
}
+#endif
+
fprintf(stderr, "%s%s%s\n", prefix, t, suffix);
break;
}