Support building with Visual Studio 2015

Enterprise / PostgreSQL - Andrew Dunstan [dunslane.net] - 29 April 2016 07:09 UTC

Adjust the way we detect the locale. As a result the minumum Windows
version supported by VS2015 and later is Windows Vista. Add some tweaks to remove new compiler warnings. Remove documentation references to the now obsolete msysGit.

Michael Paquier, somewhat edited by me, reviewed by Christian Ullrich.

Backpatch to 9.5

0fb54de Support building with Visual Studio 2015
doc/src/sgml/install-windows.sgml | 29 +++++++++-------
src/backend/port/win32/crashdump.c | 14 ++++++++
src/bin/pg_basebackup/pg_basebackup.c | 9 +++--
src/include/port/win32.h | 22 +++++++++---
src/port/chklocale.c | 61 ++++++++++++++++++++++++++-------
src/port/win32env.c | 3 ++
src/tools/msvc/MSBuildProject.pm | 23 +++++++++++++
src/tools/msvc/Solution.pm | 26 ++++++++++++++
src/tools/msvc/VSObjectFactory.pm | 12 +++++--
9 files changed, 165 insertions(+), 34 deletions(-)

Upstream: git.postgresql.org


  • Share