]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - error.c
Merging master and adopting its main.c
[xonotic/gmqcc.git] / error.c
diff --git a/error.c b/error.c
index 592416a8154d1f3ffd5478faf77623c2647da038..b9cf740b6b5ddae8383ff718b87a76598dc6a25e 100644 (file)
--- a/error.c
+++ b/error.c
  * intereting like colors for the console.
  */
 #ifndef WIN32
-#    define CON_BLACK   30
-#    define CON_RED     31
-#    define CON_GREEN   32
-#    define CON_BROWN   33
-#    define CON_BLUE    34
-#    define CON_MAGENTA 35
-#    define CON_CYAN    36
-#    define CON_WHITE   37
+enum {
+    CON_BLACK   = 30,
+    CON_RED,
+    CON_GREEN,
+    CON_BROWN,
+    CON_BLUE,
+    CON_MAGENTA,
+    CON_CYAN ,
+    CON_WHITE
+};
 static const int error_color[] = {
     CON_RED,
     CON_CYAN,