diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-07-14 11:22:49 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-07-14 11:22:49 +0900 |
commit | 6203583b72b58272010f8d06999811ff39922acf (patch) | |
tree | 6049f2ba855246e2200904ece3dd16cdb3e5dd0f /src/backend/utils/adt/float.c | |
parent | 4ca9985957881c223b4802d309c0bbbcf8acd1c1 (diff) | |
download | postgresql-6203583b72b58272010f8d06999811ff39922acf.tar.gz postgresql-6203583b72b58272010f8d06999811ff39922acf.zip |
Remove support for Visual Studio 2013
No members of the buildfarm are using this version of Visual Studio,
resulting in all the code cleaned up here as being mostly dead, and
VS2017 is the oldest version still supported.
More versions could be cut, but the gain would be minimal, while
removing only VS2013 has the advantage to remove from the core code all
the dependencies on the value defined by _MSC_VER, where compatibility
tweaks have accumulated across the years mostly around locales and
strtof(), so that's a nice isolated cleanup.
Note that this commit additionally allows a revert of 3154e16. The
versions of Visual Studio now supported range from 2015 to 2022.
Author: Michael Paquier
Reviewed-by: Juan José SantamarÃa Flecha, Tom Lane, Thomas Munro, Justin
Pryzby
Discussion: https://postgr.es/m/YoH2IMtxcS3ncWn+@paquier.xyz
Diffstat (limited to 'src/backend/utils/adt/float.c')
-rw-r--r-- | src/backend/utils/adt/float.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c index 63bb0f22772..fc8f39a7a98 100644 --- a/src/backend/utils/adt/float.c +++ b/src/backend/utils/adt/float.c @@ -249,13 +249,9 @@ float4in(PG_FUNCTION_ARGS) * precision). We'd prefer not to throw error for that, so try to * detect whether it's a "real" out-of-range condition by checking * to see if the result is zero or huge. - * - * Use isinf() rather than HUGE_VALF on VS2013 because it - * generates a spurious overflow warning for -HUGE_VALF. Also use - * isinf() if HUGE_VALF is missing. */ if (val == 0.0 || -#if !defined(HUGE_VALF) || (defined(_MSC_VER) && (_MSC_VER < 1900)) +#if !defined(HUGE_VALF) isinf(val) #else (val >= HUGE_VALF || val <= -HUGE_VALF) |