From b85a31415e8d68d0d46a105b1033a92669224682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 8 Sep 2020 13:59:30 +0200 Subject: Avoid checking of undefined macros These feature macros are either define or not defined at all at the configure step. --- RichString.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'RichString.h') diff --git a/RichString.h b/RichString.h index e6fb4c32..6b626d40 100644 --- a/RichString.h +++ b/RichString.h @@ -14,13 +14,13 @@ in the source distribution for its full text. #include #ifdef HAVE_NCURSESW_CURSES_H #include -#elif HAVE_NCURSES_NCURSES_H +#elif defined(HAVE_NCURSES_NCURSES_H) #include -#elif HAVE_NCURSES_CURSES_H +#elif defined(HAVE_NCURSES_CURSES_H) #include -#elif HAVE_NCURSES_H +#elif defined(HAVE_NCURSES_H) #include -#elif HAVE_CURSES_H +#elif defined(HAVE_CURSES_H) #include #endif @@ -63,13 +63,13 @@ void RichString_setAttrn(RichString* this, int attrs, int start, int finish); int RichString_findChar(RichString* this, char c, int start); -#else +#else /* HAVE_LIBNCURSESW */ void RichString_setAttrn(RichString* this, int attrs, int start, int finish); int RichString_findChar(RichString* this, char c, int start); -#endif +#endif /* HAVE_LIBNCURSESW */ void RichString_prune(RichString* this); -- cgit v1.2.3