diff options
author | John Naylor <john.naylor@postgresql.org> | 2024-03-08 10:57:40 +0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2024-03-08 10:57:40 +0700 |
commit | ab6ae6260372074de71805cb7fd54d55d2da994d (patch) | |
tree | 3871d95d889570bc98e4e2446afbae2ce72dc55a /src/include/port/pg_bitutils.h | |
parent | 9552e3ace317ac8bb0a80613c0e5cd6536c96dc8 (diff) | |
download | postgresql-ab6ae6260372074de71805cb7fd54d55d2da994d.tar.gz postgresql-ab6ae6260372074de71805cb7fd54d55d2da994d.zip |
Fix link error for test_radixtree module on Windows
Add PGDLLIMPORT to pg_popcount32/64. In passing, fix a typo.
Diagnosis by Masahiko Sawada, patch by David Rowley
Per buildfarm members drongo and fairywren
Discussion: https://postgr.es/m/CAD21AoAMm1mQd%3Dw4PrfrKK%3DOMP8j8%3D7ntJRPF8%2B%3D10iUuvwiCA%40mail.gmail.com
Discussion: https://postgr.es/m/CAApHDvov7724UrD1Ug0D1eV%2B9Pd_x5VEQmw-6HVG9w1WdCxXPA%40mail.gmail.com
Diffstat (limited to 'src/include/port/pg_bitutils.h')
-rw-r--r-- | src/include/port/pg_bitutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/port/pg_bitutils.h b/src/include/port/pg_bitutils.h index 799f70d0526..46bf4f01038 100644 --- a/src/include/port/pg_bitutils.h +++ b/src/include/port/pg_bitutils.h @@ -300,8 +300,8 @@ pg_ceil_log2_64(uint64 num) #ifdef TRY_POPCNT_FAST /* Attempt to use the POPCNT instruction, but perform a runtime check first */ -extern int (*pg_popcount32) (uint32 word); -extern int (*pg_popcount64) (uint64 word); +extern PGDLLIMPORT int (*pg_popcount32) (uint32 word); +extern PGDLLIMPORT int (*pg_popcount64) (uint64 word); #else /* Use a portable implementation -- no need for a function pointer. */ |