From 1d36c73bced8d5833d91766587798fac4f884db9 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 25 Jan 2021 08:43:16 +0700 Subject: [PATCH] Fix NOPIXRECT in llcolor. (#282) This code is all currently set up to be used if `COLOR` is defined. If we were to start supporting color under X11, this would have to change, but so would much of the rest of the file. --- src/llcolor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llcolor.c b/src/llcolor.c index 35e5ee8..0dab569 100644 --- a/src/llcolor.c +++ b/src/llcolor.c @@ -12,7 +12,7 @@ #include -#ifndef NOPIXRECT +#if defined(COLOR) && !defined(NOPIXRECT) #include #include #include @@ -20,7 +20,7 @@ #include #include #include -#endif /* NOPIXRECT */ +#endif /* COLOR && !NOPIXRECT */ #include #include