mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Remove some code for old unsupported versions of MSVC
As of d9dd406fe2
, 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>
This commit is contained in:
@@ -212,7 +212,7 @@ win32_langinfo(const char *ctype)
|
||||
{
|
||||
char *r = NULL;
|
||||
|
||||
#if (_MSC_VER >= 1700) && (_MSC_VER < 1900)
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
_locale_t loct = NULL;
|
||||
|
||||
loct = _create_locale(LC_CTYPE, ctype);
|
||||
@@ -226,7 +226,7 @@ win32_langinfo(const char *ctype)
|
||||
#else
|
||||
char *codepage;
|
||||
|
||||
#if (_MSC_VER >= 1900)
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
|
||||
uint32 cp;
|
||||
WCHAR wctype[LOCALE_NAME_MAX_LENGTH];
|
||||
|
||||
|
Reference in New Issue
Block a user