Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)
Дата
Msg-id 47B49C59.1060305@hagander.net
обсуждение исходный текст
Ответ на Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Ответы Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Список pgsql-patches
Gevik Babakhani wrote:
>> Haven't looked into the details of the patch yet, will do so.
>> But the first thing I notice - you say this is only for MSVC,
>> right? But the patch will also change the behaviour for the
>> mingw build. Since you say you haven't tested on it, does the
>> documentation imply that it would work on mingw, or is this
>> likely to break that build? Perhaps it should be made
>> conditional on MSVC only, and not on WIN32?
>>
>
> Thinking about the above... It is a good idea to have something like this be
> compiled only for MSVC.
> I guess we have to add an additional preprocessor directive from mkvcbuild
> to the solution (what about MSVC_COMPILER?)

We have a directive called WIN32_ONLY_COMPILER that's used for this.
It'll pick up MSVC and Borland C++ which normally behave at least almost
the same.


> I am installing mingw to test the patch there. Chances are it will break
> because mingw does __declspec(dllimport) differently than msvc

Thanks.

//Magnus

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

Предыдущее
От: "Gevik Babakhani"
Дата:
Сообщение: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)
Следующее
От: "Gevik Babakhani"
Дата:
Сообщение: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)