From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Build broken since 9aaa062 because of missing isnan and isinf
Date: Thu, 29 Jan 2015 10:29:22 -0500
Message-ID: <4853.1422545362@sss.pgh.pa.us> (raw)
In-Reply-To: <54CA2D64.2070908@vmware.com>
References: <CAB7nPqTaakgt88aQd1wY-GC0xzKfFph10P_GhrMv-Pn3x5huQg@mail.gmail.com>
<54CA1AD0.4050102@vmware.com>
<CAB7nPqSagd5yvdVddMu+qsRh8X8cUp2MkHomKD==rynCrQCBDg@mail.gmail.com>
<54CA2D64.2070908@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> On 01/29/2015 01:51 PM, Michael Paquier wrote:
>> Yes, they have been added in MS 2013. I think that my patch is
>> actually a bit wrong, we may want to use _MSC_VER < 1800 as well.
> Good point. I'm seeing a compiler warning on my system now, about
> redefining isnan and isinf. I rewrote the #ifdef as:
You might want to make it match the existing core coding in port/win32.h:
#if (_MSC_VER < 1800)
#define isinf(x) ((_fpclass(x) == _FPCLASS_PINF) || (_fpclass(x) == _FPCLASS_NINF))
#define isnan(x) _isnan(x)
#endif
That's been through the wars, unlike whatever you just came up with.
regards, tom lane
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, hlinnakangas@vmware.com, michael.paquier@gmail.com
Subject: Re: Build broken since 9aaa062 because of missing isnan and isinf
In-Reply-To: <4853.1422545362@sss.pgh.pa.us>
References: <CAB7nPqTaakgt88aQd1wY-GC0xzKfFph10P_GhrMv-Pn3x5huQg@mail.gmail.com> <54CA1AD0.4050102@vmware.com> <CAB7nPqSagd5yvdVddMu+qsRh8X8cUp2MkHomKD==rynCrQCBDg@mail.gmail.com> <54CA2D64.2070908@vmware.com> <4853.1422545362@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox