gecko-dev/gfx/cairo/clang-cl-popcount.patch

14 строки
479 B
Diff

diff --git a/gfx/cairo/cairo/src/cairoint.h b/gfx/cairo/cairo/src/cairoint.h
index d71ddca..c3c2b9b 100644
--- a/gfx/cairo/cairo/src/cairoint.h
+++ b/gfx/cairo/cairo/src/cairoint.h
@@ -178,7 +178,7 @@ do { \
static inline int cairo_const
_cairo_popcount (uint32_t mask)
{
-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __clang__
return __builtin_popcount (mask);
#else
register int y;