dwrite: Only use __builtin_popcount in PE builds.

It's not compatible with -mabi=ms.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2022-03-14 11:22:23 +01:00
parent 330dc60197
commit 73b94f8f94
1 changed files with 1 additions and 1 deletions

View File

@ -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) static inline unsigned int dwrite_popcount(unsigned int x)
{ {
#if defined(__GNUC__) && (__GNUC__ >= 4) #if defined(__MINGW32__)
return __builtin_popcount(x); return __builtin_popcount(x);
#else #else
x -= x >> 1 & 0x55555555; x -= x >> 1 & 0x55555555;