]> granicus.if.org Git - postgresql/commit
Fix most -Wundef warnings
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 19 Oct 2019 16:21:58 +0000 (18:21 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 19 Oct 2019 16:31:38 +0000 (18:31 +0200)
commit5d3587d14b753cb25b0ebcd549d95e1b6ceebce4
treebd56a49e3cf4056f0012d6f96604a67c5eed3cb9
parent48cc59ed24f95fa171b12ba1b461e6dc72d62b2b
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
contrib/hstore/hstore_compat.c
contrib/pg_standby/pg_standby.c
contrib/pgcrypto/imath.c
src/backend/libpq/be-fsstubs.c
src/backend/replication/logical/reorderbuffer.c
src/backend/storage/file/fd.c
src/backend/utils/hash/dynahash.c
src/backend/utils/mmgr/freepage.c
src/include/port/pg_bswap.h
src/port/snprintf.c
src/port/win32error.c