Module: wine Branch: master Commit: 73b94f8f94abab874dd24d91f43917ba76f76383 URL: https://source.winehq.org/git/wine.git/?a=commit;h=73b94f8f94abab874dd24d91f...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Mar 14 11:22:23 2022 +0100
dwrite: Only use __builtin_popcount in PE builds.
It's not compatible with -mabi=ms.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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;