From 2a4ab6d29d47b4f39245dd44f7178283e0d031b3 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 24 Dec 2003 08:29:49 +0000 Subject: [PATCH] and wrap the zero-length regex displaying code in a HAVE_REGEX_H #define git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1602 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/winio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winio.c b/src/winio.c index a1a933e3..eda5e5ac 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2236,10 +2236,12 @@ void do_replace_highlight(int highlight_flag, const char *word) if (highlight_flag) wattron(edit, A_REVERSE); +#ifdef HAVE_REGEX_H /* This is so we can show zero-length regexes. */ if (word_len == 0) waddstr(edit, " "); else +#endif waddnstr(edit, word, y - 1); if (word_len > y) -- 2.39.5