[gtk/wip.win32.fixes] gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes] gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
- Date: Sat, 5 Jun 2021 07:40:31 +0000 (UTC)
commit 589af211e1a9b312cb3b03745f152fd4cc3215a7
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]