Re: fix windows contrib compile warnings for redefined macros

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fix windows contrib compile warnings for redefined macros
Дата
Msg-id 18114.1098381882@sss.pgh.pa.us
обсуждение исходный текст
Ответ на fix windows contrib compile warnings for redefined macros  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: fix windows contrib compile warnings for redefined  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> This patch fixes contrib so that it compiles under windows without
> warnings about redefines for min, max, V_UNKNOWN and IDIGNORE

Surely this is wrong.  You might be able to assume that Windows'
definitions for min/max are the same as what this code is expecting,
but it's a lot bigger stretch to assume that for the other ones.
(Does tsearch2 still *work* after you change it this way??)

The right thing for the min/max macros is to get rid of them anyway,
and use the Min/Max macros from c.h.

            regards, tom lane

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: fix windows contrib compile warnings for redefined macros
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: fix windows contrib compile warnings for redefined