diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-06-05 15:37:52 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-06-05 15:41:14 +0800 |
commit | 08ee36e7c4825d351c1d23a065588d6f7b5e227b (patch) | |
tree | c4f553e253809400559e26b68d0afebb0b6ab4ca | |
parent | 1605ec0a44c8cb131d8c9ff66008609058d7089c (diff) | |
download | gtk+-08ee36e7c4825d351c1d23a065588d6f7b5e227b.tar.gz |
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.
-rw-r--r-- | gtk/gtkpopcountprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |