From 8874a7b66eb907fcc5f6801d88e6fa8b574f0c21 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Tue, 16 Dec 2008 15:42:21 +0000 Subject: [PATCH] Attempt to fix MSVC breakage from Major Version patch. --- src/tools/msvc/Solution.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index fce55aca3c..126c0ceb32 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -125,6 +125,7 @@ sub GenerateFiles s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY(z)\n#define PG_VERSION_STR "PostgreSQL $self->{strver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER)}; print O; } + print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n"; print O "#define LOCALEDIR \"/share/locale\"\n" if ($self->{options}->{nls}); print O "/* defines added by config steps */\n"; print O "#ifndef IGNORE_CONFIGURED_SETTINGS\n"; -- 2.39.5