[gtk/msvc-aarch64] gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio




commit 08ee36e7c4825d351c1d23a065588d6f7b5e227b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Sat Jun 5 15:37:52 2021 +0800

    gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
    
    __popcnt() is not supported for ARM nor ARM64 Visual Studio builds, so we must
    use the fallback implementation as intrinsics are not supported for this
    purpose on ARM/ARM64 Visual Studio builds.

 gtk/gtkpopcountprivate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopcountprivate.h b/gtk/gtkpopcountprivate.h
index 8a99dd2b26..df2282c985 100644
--- a/gtk/gtkpopcountprivate.h
+++ b/gtk/gtkpopcountprivate.h
@@ -20,7 +20,7 @@
 
 #pragma once
 
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined (_M_ARM) && !defined (_M_ARM64)
 #include <intrin.h>
 
 static inline guint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]