diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2022-05-16 23:35:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-16 23:35:22 +0200 |
| commit | 52927287402a9f7353de8854c88f931051211e2f (patch) | |
| tree | d2377c4983a8d39779e2dffa4159ba778331df91 /src | |
| parent | 86ae7d80bff298e0e6134b5d0288f935e91cc766 (diff) | |
| parent | 098bb874db85c185e2e3598f735fece7552e6dca (diff) | |
Merge pull request #1423 from Neumann-A/patch-1
Fix windows arm builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/ht_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/ht_dec.c b/src/lib/openjp2/ht_dec.c index 1eb4d525..e2f3afd6 100644 --- a/src/lib/openjp2/ht_dec.c +++ b/src/lib/openjp2/ht_dec.c @@ -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); |
