pgsql: Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.
Дата
Msg-id E1m42rD-0006fx-9v@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.

Autoconf's AC_CHECK_DECLS() always defines HAVE_DECL_whatever
as 1 or 0, but some of the entries in msvc/Solution.pm showed
such symbols as "undef" instead of 0.  Fix that for consistency.
There's no live bug in current usages AFAICS, but it's not hard
to imagine one creeping in if more-complex #if tests get added.

Back-patch to v13, which is as far back as Solution.pm contains
this data.  The inconsistency still exists in the manually-filled
pg_config_ext.h.win32 files of older branches; but as long as the
problem is only latent, it doesn't seem worth the trouble to
clean things up there.

Discussion: https://postgr.es/m/3185430.1626133592@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e529b2dc37ac80ccebd76cdbb14966d3b40819c9

Modified Files
--------------
src/tools/msvc/Solution.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix portability issue with gzip in TAP test of pg_receivewal
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Replace explicit PIN entries in pg_depend with an OID range test