summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pixman/pixman/pixman-matrix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pixman/pixman/pixman-matrix.c b/lib/pixman/pixman/pixman-matrix.c
index 89b96826b..cacc05cc8 100644
--- a/lib/pixman/pixman/pixman-matrix.c
+++ b/lib/pixman/pixman/pixman-matrix.c
@@ -37,7 +37,8 @@
static force_inline int
count_leading_zeros (uint32_t x)
{
-#ifdef __GNUC__
+#if defined(__GNUC__) && \
+ (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
return __builtin_clz (x);
#else
int n = 0;