aboutsummaryrefslogtreecommitdiff
path: root/robot/sim.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 22:16:55 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 22:16:55 +0200
commit3fd5d966f3b0cabd9f6931bc1ca416408f9e101c (patch)
tree88607b1cd901b78b0892a0a85580993f7cb2c57d /robot/sim.h
parentedfa25fcd8edad43998f50a2144d30a6f966c1c8 (diff)
compile sim on windows without errors
Diffstat (limited to 'robot/sim.h')
-rw-r--r--robot/sim.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/robot/sim.h b/robot/sim.h
index ab1cd77..08c1d8a 100644
--- a/robot/sim.h
+++ b/robot/sim.h
@@ -22,6 +22,7 @@ extern bool g_w2_sim_headless;
#define DBG_BYTES_PER_LINE 16
// debug colors
+#ifdef W2_HOST_LINUX
#define COL_BLK "\e[0;30m"
#define COL_RED "\e[0;31m"
#define COL_GRN "\e[0;32m"
@@ -31,6 +32,18 @@ extern bool g_w2_sim_headless;
#define COL_CYN "\e[0;36m"
#define COL_WHT "\e[0;37m"
#define COL_RST "\e[0m"
+#endif
+#ifdef W2_HOST_WIN32
+#define COL_BLK ""
+#define COL_RED ""
+#define COL_GRN ""
+#define COL_YEL ""
+#define COL_BLU ""
+#define COL_MAG ""
+#define COL_CYN ""
+#define COL_WHT ""
+#define COL_RST ""
+#endif
// debug stdout print macros
#define simprintf(message, ...) if (!g_w2_sim_headless) printf(COL_RED "[SIM] " COL_RST message, ##__VA_ARGS__)