pixman: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Feb 25 22:42:39 UTC 2024


 pixman/pixman-x86.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 63332b4e72caace85b7e57b99592e61ca12fd777
Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Feb 25 17:27:00 2024 -0500

    pixman-x86: Move #include "cpuid.h" inside conditionals
    
    Closes: https://gitlab.freedesktop.org/pixman/pixman/-/issues/93
    Closes: https://gitlab.freedesktop.org/pixman/pixman/-/issues/94

diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c
index 87808db..2f688eb 100644
--- a/pixman/pixman-x86.c
+++ b/pixman/pixman-x86.c
@@ -22,7 +22,7 @@
 #ifdef HAVE_CONFIG_H
 #include <pixman-config.h>
 #endif
-#include <cpuid.h>
+
 #include "pixman-private.h"
 
 #if defined(USE_X86_MMX) || defined (USE_SSE2) || defined (USE_SSSE3)
@@ -74,6 +74,10 @@ detect_cpu_features (void)
 
 #else
 
+#if defined (__GNUC__)
+#include <cpuid.h>
+#endif
+
 static void
 pixman_cpuid (uint32_t feature,
 	      uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)


More information about the xorg-commit mailing list