From 456b632b849de3a9615ef17b51cf27046234f6f4 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 5 Mar 2018 12:39:40 -0500 Subject: Undef COLOR_ constants in torus.h --- client.c | 8 -------- merge.c | 8 -------- torus.h | 9 +++++++++ 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/client.c b/client.c index fe7c62b..e8d97f1 100644 --- a/client.c +++ b/client.c @@ -27,14 +27,6 @@ #include #include -#undef COLOR_BLACK -#undef COLOR_RED -#undef COLOR_GREEN -#undef COLOR_YELLOW -#undef COLOR_BLUE -#undef COLOR_MAGENTA -#undef COLOR_CYAN -#undef COLOR_WHITE #include "torus.h" #define ESC (0x1B) diff --git a/merge.c b/merge.c index ca4ccb5..2333e9d 100644 --- a/merge.c +++ b/merge.c @@ -21,14 +21,6 @@ #include #include -#undef COLOR_BLACK -#undef COLOR_RED -#undef COLOR_GREEN -#undef COLOR_YELLOW -#undef COLOR_BLUE -#undef COLOR_MAGENTA -#undef COLOR_CYAN -#undef COLOR_WHITE #include "torus.h" static ssize_t writeAll(int fd, const char *buf, size_t len) { diff --git a/torus.h b/torus.h index 661d47a..fd158ed 100644 --- a/torus.h +++ b/torus.h @@ -22,6 +22,15 @@ #define ALIGNED(x) __attribute__((aligned(x))) +#undef COLOR_BLACK +#undef COLOR_RED +#undef COLOR_GREEN +#undef COLOR_YELLOW +#undef COLOR_BLUE +#undef COLOR_MAGENTA +#undef COLOR_CYAN +#undef COLOR_WHITE + enum { COLOR_BLACK, COLOR_RED, -- cgit 1.4.1