summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wc.c b/wc.c
index c11a3f8..60384de 100644
--- a/wc.c
+++ b/wc.c
@@ -84,9 +84,11 @@ int is_space(wint_t c, int flags)
int is_newline(wint_t c, int flags)
{
+ #ifdef __STDC_MB_MIGHT_NEQ_WC__
if (flags & CHARS) {
return c == L'\n';
}
+ #endif
return c == '\n';
}