aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/float.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-08 10:27:30 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-10-08 10:50:54 +0200
commit38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd (patch)
treeb590d669ebe12f434b403643b0fcaa12b92cd91e /src/include/utils/float.h
parenta7471bd85c05f849e88d6cfe9da3c795008e8f2e (diff)
downloadpostgresql-38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd.tar.gz
postgresql-38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd.zip
Remove some code for old unsupported versions of MSVC
As of d9dd406fe281d22d5238d3c26a7182543c711e74, we require MSVC 2013, which means _MSC_VER >= 1800. This means that conditionals about older versions of _MSC_VER can be removed or simplified. Previous code was also in some cases handling MinGW, where _MSC_VER is not defined at all, incorrectly, such as in pg_ctl.c and win32_port.h, leading to some compiler warnings. This should now be handled better. Reviewed-by: Michael Paquier <michael@paquier.xyz>
Diffstat (limited to 'src/include/utils/float.h')
-rw-r--r--src/include/utils/float.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/float.h b/src/include/utils/float.h
index 543d00e5910..6a4d2bfe094 100644
--- a/src/include/utils/float.h
+++ b/src/include/utils/float.h
@@ -63,7 +63,7 @@ extern int float8_cmp_internal(float8 a, float8 b);
* long lived bug in the Microsoft compilers.
* See http://support.microsoft.com/kb/120968/en-us for details
*/
-#if (_MSC_VER >= 1800)
+#ifdef _MSC_VER
#pragma warning(disable:4756)
#endif
static inline float4
@@ -73,7 +73,7 @@ get_float4_infinity(void)
/* C99 standard way */
return (float4) INFINITY;
#else
-#if (_MSC_VER >= 1800)
+#ifdef _MSC_VER
#pragma warning(default:4756)
#endif