aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/pg_bitutils.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-11-29 11:00:00 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-11-29 11:00:00 -0500
commite04a8059a74c125a8af94acdcb7b15b92188470a (patch)
tree0be52ca72de433f2ff8f3eb5e43a517055cc209f /src/include/port/pg_bitutils.h
parent11b500072e42c214462b973b0b05f1c68992226b (diff)
downloadpostgresql-e04a8059a74c125a8af94acdcb7b15b92188470a.tar.gz
postgresql-e04a8059a74c125a8af94acdcb7b15b92188470a.zip
Simplify declaring variables exported from libpgcommon and libpgport.
This reverts commits c2d1eea9e and 11b500072, as well as similar hacks elsewhere, in favor of setting up the PGDLLIMPORT macro so that it can just be used unconditionally. That can work because in frontend code, we need no marking in either the defining or consuming files for a variable exported from these libraries; and frontend code has no need to access variables exported from the core backend, either. While at it, write some actual documentation about the PGDLLIMPORT and PGDLLEXPORT macros. Patch by me, based on a suggestion from Robert Haas. Discussion: https://postgr.es/m/1160385.1638165449@sss.pgh.pa.us
Diffstat (limited to 'src/include/port/pg_bitutils.h')
-rw-r--r--src/include/port/pg_bitutils.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/port/pg_bitutils.h b/src/include/port/pg_bitutils.h
index 7dd7fef4f74..d5078b54b30 100644
--- a/src/include/port/pg_bitutils.h
+++ b/src/include/port/pg_bitutils.h
@@ -13,15 +13,9 @@
#ifndef PG_BITUTILS_H
#define PG_BITUTILS_H
-#ifndef FRONTEND
extern PGDLLIMPORT const uint8 pg_leftmost_one_pos[256];
extern PGDLLIMPORT const uint8 pg_rightmost_one_pos[256];
extern PGDLLIMPORT const uint8 pg_number_of_ones[256];
-#else
-extern const uint8 pg_leftmost_one_pos[256];
-extern const uint8 pg_rightmost_one_pos[256];
-extern const uint8 pg_number_of_ones[256];
-#endif
/*
* pg_leftmost_one_pos32