Re: Building with Visual C++
От
Magnus Hagander
Тема
Re: Building with Visual C++
Дата
Msg-id
6BCB9D8A16AC4241919521715F4D8BCEA352E5@algol.sollentuna.se
Список
Дерево обсуждения
Re: Building with Visual C++ "Dave Page" <dpage@vale-housing.co.uk>
Re: Building with Visual C++ Tom Lane <tgl@sss.pgh.pa.us>
> > *) Change where NaN is generated. Using 0.0/0.0 doesn't
> work in VC++
> > because it detects it as a divide-by-zero at the compile stage.
>
> If they're going to be that anally uncooperative, why don't
> they have the required-by-C99-spec macro for NAN? Or at
> least some well-defined way to generate a NaN?
They do have one way that's documented on MSDN, which is:
unsigned long nan[2]={0xffffffff, 0x7fffffff};
double g = *( double* )nan;
I thought that was even uglier ;-), but I can change it to use that on
win32 if you prefer it?
//Magnus
В списке pgsql-patches по дате отправления