mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
build: "popcount" name conflict on NetBSD #28983
Problem: NetBSD's libc already has a function by the same name. Solution: Rename popcount to xpopcount and add #if defined(__NetBSD__) to prefer NetBSD's own implementation. This fixes #28983.
This commit is contained in:
@@ -2354,8 +2354,8 @@ void nvim__redraw(Dict(redraw) *opts, Error *err)
|
||||
}
|
||||
}
|
||||
|
||||
int count = (win != NULL) + (buf != NULL);
|
||||
VALIDATE(popcount(opts->is_set__redraw_) > count, "%s", "at least one action required", {
|
||||
unsigned count = (win != NULL) + (buf != NULL);
|
||||
VALIDATE(xpopcount(opts->is_set__redraw_) > count, "%s", "at least one action required", {
|
||||
return;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user