Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>, sandeep(dot)thakkar(at)enterprisedb(dot)com
Cc: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Steele <david(at)pgmasters(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)
Date: 2018-08-21 15:56:16
Message-ID: 97d4b165-192d-3605-749c-f614a0c4e783@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

On 16/08/2018 15:00, Andres Freund wrote:
>> According to my research (completely untested in practice), you need
>> 2010 for mixed code and declarations and 2013 for named initialization
>> of structs.
>>
>> I wonder what raising the msvc requirement would imply for supporting
>> older Windows versions.
> One relevant tidbit is that afaict 2013 still allows *targeting* older
> versions of windows, down to XP and 2003, while requiring a newer
> platforms to run. See:
> https://docs.microsoft.com/en-us/visualstudio/productinfo/vs2013-compatibility-vs
> I don't know if that's hard to do, but I strongly suspect that the
> existing installers already do that (otherwise supporting newer versions
> would likely require separate builds).

So, does anyone with Windows build experience want to comment on this?

The proposal is to desupport anything older than (probably) MSVC 2013,
or alternatively anything that cannot compile the attached test file.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
test-c99.c text/plain 167 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2018-08-21 15:57:15 Re: Pre-v11 appearances of the word "procedure" in v11 docs
Previous Message Peter Eisentraut 2018-08-21 15:38:55 Re: remove ATTRIBUTE_FIXED_PART_SIZE

Browse pgsql-www by date

  From Date Subject
Next Message Umair Shahid 2018-08-21 16:57:48 Adding PGInstaller to the Downloads section
Previous Message Jana Morlang 2018-08-20 09:07:40 AW: Edit rights for a user