|
@@ -10,13 +10,23 @@
|
|
/* ANSI escape sequences for color output taken from here:
|
|
/* ANSI escape sequences for color output taken from here:
|
|
* https://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c*/
|
|
* https://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c*/
|
|
|
|
|
|
-#define ANSI_COLOR_RED "\x1b[31m"
|
|
|
|
-#define ANSI_COLOR_GREEN "\x1b[32m"
|
|
|
|
-#define ANSI_COLOR_YELLOW "\x1b[33m"
|
|
|
|
-#define ANSI_COLOR_BLUE "\x1b[34m"
|
|
|
|
-#define ANSI_COLOR_MAGENTA "\x1b[35m"
|
|
|
|
-#define ANSI_COLOR_CYAN "\x1b[36m"
|
|
|
|
-#define ANSI_COLOR_RESET "\x1b[0m"
|
|
|
|
|
|
+#ifdef _WIN32
|
|
|
|
+# define ANSI_COLOR_RED ""
|
|
|
|
+# define ANSI_COLOR_GREEN ""
|
|
|
|
+# define ANSI_COLOR_YELLOW ""
|
|
|
|
+# define ANSI_COLOR_BLUE ""
|
|
|
|
+# define ANSI_COLOR_MAGENTA ""
|
|
|
|
+# define ANSI_COLOR_CYAN ""
|
|
|
|
+# define ANSI_COLOR_RESET ""
|
|
|
|
+#else
|
|
|
|
+# define ANSI_COLOR_RED "\x1b[31m"
|
|
|
|
+# define ANSI_COLOR_GREEN "\x1b[32m"
|
|
|
|
+# define ANSI_COLOR_YELLOW "\x1b[33m"
|
|
|
|
+# define ANSI_COLOR_BLUE "\x1b[34m"
|
|
|
|
+# define ANSI_COLOR_MAGENTA "\x1b[35m"
|
|
|
|
+# define ANSI_COLOR_CYAN "\x1b[36m"
|
|
|
|
+# define ANSI_COLOR_RESET "\x1b[0m"
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef UA_ENABLE_MULTITHREADING
|
|
#ifdef UA_ENABLE_MULTITHREADING
|
|
#include <pthread.h>
|
|
#include <pthread.h>
|