From c99674c6ac362508838efbc0ef58a9dfe8779890 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 5 Jul 2024 17:14:59 +0200 Subject: [PATCH] LibGfx: Fix build on NetBSD NetBSD provides its own popcount() function. --- Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h b/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h index ef8b18dbce7..3d8e7747d94 100644 --- a/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h +++ b/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h @@ -21,7 +21,7 @@ namespace Detail { static auto constexpr coverage_lut = [] { Array coverage_lut {}; for (u32 sample = 0; sample <= 255; sample++) - coverage_lut[sample] = popcount(sample); + coverage_lut[sample] = AK::popcount(sample); return coverage_lut; }();