Rethink how to get float.h in old Windows API for isnan/isinf

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: f2c587067a8eb9cf1c8f009262381a6576ba3dd0
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-07-11T13:11:48Z
Releases: 12.0
Rethink how to get float.h in old Windows API for isnan/isinf

We include <float.h> in every place that needs isnan(), because MSVC
used to require it.  However, since MSVC 2013 that's no longer necessary
(cf. commit cec8394b5ccd), so we can retire the inclusion to a
version-specific stanza in win32_port.h, where it doesn't need to
pollute random .c files.  The header is of course still needed in a few
places for other reasons.

I (Álvaro) removed float.h from a few more files than in Emre's original
patch.  This doesn't break the build in my system, but we'll see what
the buildfarm has to say about it all.

Author: Emre Hasegeli
Discussion: https://postgr.es/m/CAE2gYzyc0+5uG+Cd9-BSL7NKC8LSHLNg1Aq2=8ubjnUwut4_iw@mail.gmail.com

Files

Discussion