[libgda] Gda-Sql: don't use color output on Windows



commit 22992352edac932709d338fc2fc27c7da3997d10
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat Aug 25 15:29:11 2012 +0200

    Gda-Sql: don't use color output on Windows

 tools/gda-sql.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tools/gda-sql.c b/tools/gda-sql.c
index e240906..fab3a1e 100644
--- a/tools/gda-sql.c
+++ b/tools/gda-sql.c
@@ -6818,6 +6818,7 @@ color_print (GdaSqlColor color, OutputFormat format, const char *fmt, ...)
 const gchar *
 color_s (GdaSqlColor color, OutputFormat format)
 {
+#ifndef G_OS_WIN32
 	if (format & OUTPUT_FORMAT_COLOR_TERM) {
 		switch (color) {
 		case GDA_SQL_COLOR_NORMAL:
@@ -6832,5 +6833,6 @@ color_s (GdaSqlColor color, OutputFormat format)
 			g_assert_not_reached();
 		}
 	}
+#endif
 	return "";
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]