Commit 73b94f8f authored by Alexandre Julliard's avatar Alexandre Julliard

dwrite: Only use __builtin_popcount in PE builds.

It's not compatible with -mabi=ms. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 330dc601
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment