diff options
Diffstat (limited to 'gfx/cairo/clang-cl-popcount.patch')
-rw-r--r-- | gfx/cairo/clang-cl-popcount.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gfx/cairo/clang-cl-popcount.patch b/gfx/cairo/clang-cl-popcount.patch new file mode 100644 index 0000000000..241e5e9336 --- /dev/null +++ b/gfx/cairo/clang-cl-popcount.patch @@ -0,0 +1,13 @@ +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; |