--- a/chafa/internal/chafa-popcnt.c +++ b/chafa/internal/chafa-popcnt.c @@ -23,6 +23,10 @@ #include "chafa/chafa.h" #include "chafa/chafa-private.h" +#if !defined(HAVE_POPCNT64_INTRINSICS) && !defined(__GLIBC__) +typedef int __int32_t; +#endif + gint chafa_pop_count_u64_builtin (guint64 v) {