Remove some code for old unsupported versions of MSVC
Peter Eisentraut <peter@eisentraut.org>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pg_locale.c | modified | +2 −21 |
| src/backend/utils/adt/selfuncs.c | modified | +0 −13 |
| src/bin/pg_ctl/pg_ctl.c | modified | +0 −31 |
| src/include/pg_config.h.win32 | modified | +1 −32 |
| src/include/port/win32.h | modified | +1 −1 |
| src/include/port/win32_port.h | modified | +0 −12 |
| src/include/utils/float.h | modified | +2 −2 |
| src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c | modified | +50 −57 |
| src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr | modified | +177 −177 |
| src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc | modified | +0 −7 |
| src/port/chklocale.c | modified | +2 −2 |
| src/tools/msvc/Solution.pm | modified | +0 −2 |