Skip to content

Commit

Permalink
Merge pull request #1423 from Neumann-A/patch-1
Browse files Browse the repository at this point in the history
Fix windows arm builds
  • Loading branch information
rouault committed May 16, 2022
2 parents 86ae7d8 + 098bb87 commit 5292728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/openjp2/ht_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static OPJ_BOOL only_cleanup_pass_is_decoded = OPJ_FALSE;
static INLINE
OPJ_UINT32 population_count(OPJ_UINT32 val)
{
#ifdef OPJ_COMPILER_MSVC
#if defined(OPJ_COMPILER_MSVC) && (defined(_M_IX86) || defined(_M_AMD64))
return (OPJ_UINT32)__popcnt(val);
#elif (defined OPJ_COMPILER_GNUC)
return (OPJ_UINT32)__builtin_popcount(val);
Expand Down

0 comments on commit 5292728

Please sign in to comment.