Re: Re: WIN32 errno patch

Поиск
Список
Период
Сортировка
От Mikhail Terekhov
Тема Re: Re: WIN32 errno patch
Дата
Msg-id 3B730FEF.B43C3BCD@emc.com
обсуждение исходный текст
Ответ на Re: WIN32 errno patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers

Tom Lane wrote:
> 
> Mikhail Terekhov <terekhov@emc.com> writes:
> > One can't just #undef errno on windows because it is defined as
> > follows:
> 
> I was wondering if Windows might play any games with errno.  However,
> we've had at least one instance of "errno = 0;" in the libpq sources
> since 7.0 or before, and no one has complained that it doesn't build
> on Windows ... if errno is defined as a function call, that should
> yield a compile error, no?
> 

It complains but only if you build a dll or multithreaded app.

> Also, the patch is already in place, and I have a report that it works.
> 

It works only when compiling static apps I think.


Regards,
Mikhail Terekhov


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

Предыдущее
От: "Magnus Naeslund\(f\)"
Дата:
Сообщение: Re: Re: WIN32 errno patch
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Vague idea for allowing per-column locale