diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-08 13:59:30 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-18 12:28:40 +0200 |
commit | b85a31415e8d68d0d46a105b1033a92669224682 (patch) | |
tree | 61020d61c68f9772967754c2598599e6ad9d84f3 /RichString.c | |
parent | c3952e7c20a3108c2f16aa579f8062dfc2163bd8 (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.c')
-rw-r--r-- | RichString.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/RichString.c b/RichString.c index b97e34e5..661b765d 100644 --- a/RichString.c +++ b/RichString.c @@ -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) |