summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/scsitools/misc.c')
-rw-r--r--utils/imxtools/scsitools/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/imxtools/scsitools/misc.c b/utils/imxtools/scsitools/misc.c
index 108235e7fd..36eae198e5 100644
--- a/utils/imxtools/scsitools/misc.c
+++ b/utils/imxtools/scsitools/misc.c
@@ -32,7 +32,12 @@ char GREEN[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '2', 0x6d, '\0' };
char YELLOW[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '3', 0x6d, '\0' };
char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' };
+#if defined(_WIN32) || defined(__WIN32__)
+/* disable colors on Windows */
+static bool g_color_enable = false;
+#else
static bool g_color_enable = true;
+#endif
void *xmalloc(size_t s)
{