diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-07-11 09:09:59 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-07-11 09:11:48 -0400 |
commit | f2c587067a8eb9cf1c8f009262381a6576ba3dd0 (patch) | |
tree | 187b568af528038ae94f9606b3c0c8d0778cfdee /contrib/jsonb_plperl/jsonb_plperl.c | |
parent | a01d0fa1d889cc2003e1941e8b98707c4d701ba9 (diff) | |
download | postgresql-f2c587067a8eb9cf1c8f009262381a6576ba3dd0.tar.gz |
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
Diffstat (limited to 'contrib/jsonb_plperl/jsonb_plperl.c')
-rw-r--r-- | contrib/jsonb_plperl/jsonb_plperl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/jsonb_plperl/jsonb_plperl.c b/contrib/jsonb_plperl/jsonb_plperl.c index e847ae5369..79c5f57d8f 100644 --- a/contrib/jsonb_plperl/jsonb_plperl.c +++ b/contrib/jsonb_plperl/jsonb_plperl.c @@ -1,6 +1,5 @@ #include "postgres.h" -#include <float.h> #include <math.h> /* Defined by Perl */ |