Resolves https://github.com/xkbcommon/libxkbcommon/issues/41
Signed-off-by: Ran Benita <ran234@gmail.com>
if (XkbLevelsSameSyms(level, no_mods_level))
continue;
- if (entry == matching_entry || popcount(entry->mods.mask) == 1)
+ if (entry == matching_entry || my_popcount(entry->mods.mask) == 1)
consumed |= entry->mods.mask & ~entry->preserve.mask;
}
break;
return pos;
}
+// Avoid conflict with other popcount()s.
static inline int
-popcount(uint32_t x)
+my_popcount(uint32_t x)
{
int count;
#if defined(HAVE___BUILTIN_POPCOUNT)