From 3627905c4663029ef7da25503cdf13359c1a4ed0 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 May 2019 13:40:12 -0400 Subject: remove unnecessary branch if L'\n' == '\n' --- wc.c | 2 ++ 1 file changed, 2 insertions(+) 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'; } -- cgit v1.2.1