Avoid checking of undefined macros

These feature macros are either define or not defined at all at the
configure step.
This commit is contained in:
Christian Göttsche
2020-09-08 13:59:30 +02:00
committed by cgzones
parent c3952e7c20
commit b85a31415e
6 changed files with 20 additions and 20 deletions

View File

@ -70,7 +70,7 @@ int RichString_findChar(RichString* this, char c, int start) {
return -1;
}
#else
#else /* HAVE_LIBNCURSESW */
static inline void RichString_writeFrom(RichString* this, int attrs, const char* data_c, int from, int len) {
int newLen = from + len;
@ -99,7 +99,7 @@ int RichString_findChar(RichString* this, char c, int start) {
return -1;
}
#endif
#endif /* HAVE_LIBNCURSESW */
void RichString_prune(RichString* this) {
if (this->chlen > RICHSTRING_MAXLEN)