From dca7a5080bd510b0a40e612fdd2054b7253c0be7 Mon Sep 17 00:00:00 2001
From: Zhuowei Zhang <zhuoweizhang@yahoo.com>
Date: Sun, 3 May 2015 19:35:17 +0000
Subject: [PATCH] Fix build with gcc2

---
 display.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/display.c b/display.c
index 168f2ce..2f249da 100644
--- a/display.c
+++ b/display.c
@@ -187,14 +187,17 @@ void displayLine(int offset, int max)
   for (i = offset; i < offset + lineLength; i++) {
     if (i > offset) MAXATTRPRINTW(bufferAttr[i] & MARKED, (((i - offset) % blocSize) ? " " : "  "));
     if (i < max) {
-      ATTRPRINTW(
 #ifdef HAVE_COLORS
+      ATTRPRINTW(
 		 (!colored ? 0 :
 		  buffer[i] == 0 ? COLOR_PAIR(1) :
 		  buffer[i] < ' ' ? COLOR_PAIR(2) : 
 		  buffer[i] >= 127 ? COLOR_PAIR(3) : 0) |
-#endif
 		 bufferAttr[i], ("%02X", buffer[i]));
+#else
+      ATTRPRINTW(
+		 bufferAttr[i], ("%02X", buffer[i]));
+#endif
     }
     else PRINTW(("  "));
   }
-- 
2.2.2

