Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug

Поиск
Список
Период
Сортировка
От andrew@dunslane.net
Тема Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug
Дата
Msg-id 3653.24.211.165.134.1153961291.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug  ("Florian G. Pflug" <fgp@phlo.org>)
Список pgsql-hackers
> Bruce Momjian wrote:
>>>> Why is this better than:
>>>>
>>>>   #if _MSC_VER == 1400
>>>>
>>>>
>>>> Surely this will not be true if _MSC_VER is undefined?
>>> I experienced injustice and the reason of in OSX for it.
>>
>> What was the problem with OSX?  Did it throw a warning of you did an
>> equality test on an undefined symbol?
>
> The following if evaluated to true on osx, although I'm pretty sure that
> _MSC_VER isn't defined on osx ;-)
> #if (_MSC_VER < 1300)
> ...
> #endif
>
> replacing it with
> #ifdef WIN32
> #if (_MSC_VER < 1300)
> ...
> #endif
> #endif
>
> fixed the problem.
>


No doubt, but that's quite a different test.

cheers

andrew



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

Предыдущее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: [PATCHES] Patch for VS.Net 2005's strxfrm() bug