Re: Remove support for Visual Studio 2013

From: Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Remove support for Visual Studio 2013
Date: 2022-05-17 16:26:20
Message-ID: CAC+AXB2PyaXUWM1DwvizJVD2eryJ2_yeSm66XkfLv4bT5qBjkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 16, 2022 at 8:58 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:

>
> The patch attached cleans up the following things proper to VS 2013:
> - Locale handling.
> - MIN_WINNT assignment.
> - Some strtof() business, as of win32_port.h.
> - Removal of _set_FMA3_enable() in main.c related to floating-point
> operations.
> - MSVC scripts, but that's less interesting considering the work done
> with meson.
>
> When building on MinGW with NLS enabled I get some errors:

c:/cirrus/src/backend/utils/adt/pg_locale.c: In function
'search_locale_enum':
c:/cirrus/src/backend/utils/adt/pg_locale.c:989:13: warning: implicit
declaration of function 'GetLocaleInfoEx'; did you mean 'GetLocaleInfoA'?
[-Wimplicit-function-declaration]
989 | if (GetLocaleInfoEx(pStr, LOCALE_SENGLISHLANGUAGENAME,
| ^~~~~~~~~~~~~~~
| GetLocaleInfoA

This is because current MinGW defaults to Windows 2003 [1], maybe we should
fix Windows' minimal version to Vista (0x0600) unconditionally also. I have
seen a couple of compilation warnings while testing that setting on MinGW,
please find attached a patch for so.

[1]
https://github.com/mirror/mingw-w64/blob/master/mingw-w64-headers/include/sdkddkver.h

Regards,

Juan José Santamaría Flecha

Attachment Content-Type Size
0001-MinGW-Windows-Vista-Warnings.patch application/octet-stream 569 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-05-17 17:25:07 Re: Tracking notnull attributes inside Var
Previous Message Robert Haas 2022-05-17 16:24:24 Re: Add WAL recovery messages with log_wal_traffic GUC (was: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display)