8e0c76f8bf
OK sthen@, D. Adam Karim (previous maintainer)
13 lines
504 B
Plaintext
13 lines
504 B
Plaintext
$OpenBSD: patch-key_c,v 1.1 2010/06/02 15:07:50 dcoppa Exp $
|
|
--- key.c.orig Tue Mar 2 16:54:05 2010
|
|
+++ key.c Mon May 10 10:46:57 2010
|
|
@@ -351,7 +351,7 @@ static int8_t const __utf32_clz_to_len[32] = {
|
|
2, 2, 2, 2, /* 0x00000080 */
|
|
1, 1, 1, 1, 1, 1, 1 /* 0x00000001 */
|
|
};
|
|
-#define utf8clen(c) __utf32_clz_to_len[__builtin_clz((uint32_t)(c) | 1)]
|
|
+#define utf8clen(c) __utf32_clz_to_len[awesome_clz((uint32_t)(c) | 1)]
|
|
|
|
static bool
|
|
keysym_to_utf8(char *buf, const xcb_keysym_t ksym)
|