From 38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 8 Oct 2019 10:27:30 +0200 Subject: 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 --- src/include/utils/float.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/utils/float.h') 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 -- cgit v1.2.3