dont_use_64-bit_bitscans_on_32bit_msvc_builds.patch
application/octet-stream
Filename: dont_use_64-bit_bitscans_on_32bit_msvc_builds.patch
Type: application/octet-stream
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| src/include/port/pg_bitutils.h | 2 | 2 |
diff --git a/src/include/port/pg_bitutils.h b/src/include/port/pg_bitutils.h index 158ef73a2b..21a4fa0341 100644 --- a/src/include/port/pg_bitutils.h +++ b/src/include/port/pg_bitutils.h @@ -81,7 +81,7 @@ pg_leftmost_one_pos64(uint64 word) #error must have a working 64-bit integer datatype #endif /* HAVE_LONG_INT_64 */ -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_ARM64)) unsigned long result; bool non_zero; @@ -152,7 +152,7 @@ pg_rightmost_one_pos64(uint64 word) #error must have a working 64-bit integer datatype #endif /* HAVE_LONG_INT_64 */ -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_ARM64)) unsigned long result; bool non_zero;