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/tools/msvc/Solution.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/tools') diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 17e5903c28b..a6958273ac1 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -511,10 +511,8 @@ sub GenerateFiles open(my $o, '>', 'src/interfaces/ecpg/include/ecpg_config.h') || confess "Could not open ecpg_config.h"; print $o < 1200) #define HAVE_LONG_LONG_INT 1 #define HAVE_LONG_LONG_INT_64 1 -#endif #define ENABLE_THREAD_SAFETY 1 EOF close($o); -- cgit v1.2.3