Обсуждение: pgsql: Fix most -Wundef warnings
Fix most -Wundef warnings In some cases #if was used instead of #ifdef in an inconsistent style. Cleaning this up also helps when analyzing cases like 38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd where this makes a difference. There are no behavior changes here, but the change in pg_bswap.h would prevent possible accidental misuse by third-party code. Discussion: https://www.postgresql.org/message-id/flat/3b615ca5-c595-3f1d-fdf7-a429e564f614%402ndquadrant.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5d3587d14b753cb25b0ebcd549d95e1b6ceebce4 Modified Files -------------- contrib/hstore/hstore_compat.c | 2 +- contrib/pg_standby/pg_standby.c | 2 +- contrib/pgcrypto/imath.c | 4 ++-- src/backend/libpq/be-fsstubs.c | 4 ++-- src/backend/replication/logical/reorderbuffer.c | 2 +- src/backend/storage/file/fd.c | 2 +- src/backend/utils/hash/dynahash.c | 14 +++++++------- src/backend/utils/mmgr/freepage.c | 2 +- src/include/port/pg_bswap.h | 8 ++++++++ src/port/snprintf.c | 4 ++-- src/port/win32error.c | 2 +- 11 files changed, 27 insertions(+), 19 deletions(-)