Merge branch 'msvc-fix' into 'master'

Fix illegal instruction crash on x64 CPUs without POPCNT instruction when compiled with MSVC

See merge request GNOME/gtk!3664
This commit is contained in:
Matthias Clasen 2021-06-13 11:38:22 +00:00
commit 65212535df

View File

@ -20,7 +20,7 @@
#pragma once
#if defined(_MSC_VER) && !defined (_M_ARM) && !defined (_M_ARM64)
#if (defined(_MSC_VER) && !_M_ARM && !_M_ARM64) && (__AVX__ || __SSE4_2__ || __POPCNT__)
#include <intrin.h>
static inline guint