summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-08 13:59:30 +0200
committercgzones <cgzones@googlemail.com>2020-09-18 12:28:40 +0200
commitb85a31415e8d68d0d46a105b1033a92669224682 (patch)
tree61020d61c68f9772967754c2598599e6ad9d84f3 /RichString.h
parentc3952e7c20a3108c2f16aa579f8062dfc2163bd8 (diff)
Avoid checking of undefined macros
These feature macros are either define or not defined at all at the configure step.
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h12
1 files changed, 6 insertions, 6 deletions
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 <assert.h>
#ifdef HAVE_NCURSESW_CURSES_H
#include <ncursesw/curses.h>
-#elif HAVE_NCURSES_NCURSES_H
+#elif defined(HAVE_NCURSES_NCURSES_H)
#include <ncurses/ncurses.h>
-#elif HAVE_NCURSES_CURSES_H
+#elif defined(HAVE_NCURSES_CURSES_H)
#include <ncurses/curses.h>
-#elif HAVE_NCURSES_H
+#elif defined(HAVE_NCURSES_H)
#include <ncurses.h>
-#elif HAVE_CURSES_H
+#elif defined(HAVE_CURSES_H)
#include <curses.h>
#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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy