summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-07 10:01:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-07 10:01:32 -0700
commitb116d3a45854f9c92e98c5526c1d6bccd3d9cfbe (patch)
tree01991439c8f1a257c59bfc603995fb5ac450fa76 /src
parent52b0fe21ad36ef0e81193d4418916dbec7352fa4 (diff)
downloadbinaryen-b116d3a45854f9c92e98c5526c1d6bccd3d9cfbe.tar.gz
binaryen-b116d3a45854f9c92e98c5526c1d6bccd3d9cfbe.tar.bz2
binaryen-b116d3a45854f9c92e98c5526c1d6bccd3d9cfbe.zip
if we don't recognize the platform in colors.h, just do nothing for colors
Diffstat (limited to 'src')
-rw-r--r--src/support/colors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/support/colors.h b/src/support/colors.h
index d81ecbc16..fb5267ce1 100644
--- a/src/support/colors.h
+++ b/src/support/colors.h
@@ -42,6 +42,15 @@ inline void grey(std::ostream& stream) { outputColorCode(stream, 0x08); }
inline void green(std::ostream& stream) { outputColorCode(stream, 0x02); }
inline void blue(std::ostream& stream) { outputColorCode(stream, 0x09); }
inline void bold(std::ostream& stream) { /* Do nothing */ }
+#else
+inline void normal(std::ostream& stream) {}
+inline void red(std::ostream& stream) {}
+inline void magenta(std::ostream& stream) {}
+inline void orange(std::ostream& stream) {}
+inline void grey(std::ostream& stream) {}
+inline void green(std::ostream& stream) {}
+inline void blue(std::ostream& stream) {}
+inline void bold(std::ostream& stream) {}
#endif
};