_isnan() on Windows - Mailing list pgsql-hackers

From Emre Hasegeli
Subject _isnan() on Windows
Date
Msg-id CAE2gYzyc0+5uG+Cd9-BSL7NKC8LSHLNg1Aq2=8ubjnUwut4_iw@mail.gmail.com
Whole thread Raw
Responses Re: _isnan() on Windows  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
isnan() function is evidently not present on <math.h> on Windows
before Visual Studio 2013.  We define it on win32_port.h using
_isnan().  However _isnan() is also not present.  It is on <float.h>.
The patch is attached to include this from win32_port.h.

Thanks to Thomas Munro for point this out to me [1].  It is hard to
notice this issue without testing the changes on Windows.

[1] https://www.postgresql.org/message-id/CAEepm%3D3dE0w%3D_dOcELpPum6suze2NZwc%3DAV4T_xYrDUoHbZJvA%40mail.gmail.com

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [PATCH] Timestamp for a XLOG_BACKUP_END WAL-record
Next
From: Emre Hasegeli
Date:
Subject: Re: [PATCH] Improve geometric types