From 73b94f8f94abab874dd24d91f43917ba76f76383 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 14 Mar 2022 11:22:23 +0100 Subject: [PATCH] dwrite: Only use __builtin_popcount in PE builds. It's not compatible with -mabi=ms. Signed-off-by: Alexandre Julliard --- dlls/dwrite/opentype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index f04b70db193..c671218c486 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -3435,7 +3435,7 @@ static unsigned int opentype_layout_is_glyph_covered(const struct dwrite_fonttab static inline unsigned int dwrite_popcount(unsigned int x) { -#if defined(__GNUC__) && (__GNUC__ >= 4) +#if defined(__MINGW32__) return __builtin_popcount(x); #else x -= x >> 1 & 0x55555555;