aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2023-10-07 21:36:59 +0000
committerChristos Margiolis <christos@FreeBSD.org>2023-10-07 21:36:59 +0000
commit6d3296f16a06bcaa49918799e683936711dcf9c9 (patch)
tree29b1f5e78f791c4becdfc7c3c32688f2dfef146a
parent9e589b0938579f3f4d89fa5c051f845bf754184d (diff)
downloadsrc-6d3296f16a06bcaa49918799e683936711dcf9c9.tar.gz
src-6d3296f16a06bcaa49918799e683936711dcf9c9.zip
teken: use __bitcount() instead of bitcount()
The use of bitcount() triggered a build error because it couldn't be located. __bitcount() on the other hand is defined in sys/types.h, which is included in teken/teken.h. MFC after: 2 weeks
-rw-r--r--sys/teken/teken_wcwidth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/teken/teken_wcwidth.h b/sys/teken/teken_wcwidth.h
index f5a23dbc9679..bc992e1ef5d8 100644
--- a/sys/teken/teken_wcwidth.h
+++ b/sys/teken/teken_wcwidth.h
@@ -129,7 +129,7 @@ teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes)
{
/* Check for malformed characters. */
- if (bitcount(bytes[0] & 0xf0) != nbytes)
+ if (__bitcount(bytes[0] & 0xf0) != nbytes)
return (TEKEN_UTF8_INVALID_CODEPOINT);
switch (nbytes) {