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 /src/backend/utils/adt/arrayfuncs.c | |
parent | a01d0fa1d889cc2003e1941e8b98707c4d701ba9 (diff) | |
download | postgresql-f2c587067a8eb9cf1c8f009262381a6576ba3dd0.tar.gz postgresql-f2c587067a8eb9cf1c8f009262381a6576ba3dd0.zip |
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 'src/backend/utils/adt/arrayfuncs.c')
-rw-r--r-- | src/backend/utils/adt/arrayfuncs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index 0cbdbe5587e..0c6c9da253e 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -15,9 +15,6 @@ #include "postgres.h" #include <ctype.h> -#ifdef _MSC_VER -#include <float.h> /* for _isnan */ -#endif #include <math.h> #include "access/hash.h" |