aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2008-12-16 15:42:21 +0000
committerAndrew Dunstan <andrew@dunslane.net>2008-12-16 15:42:21 +0000
commit04ecc64310477f57c144e45e44b8ff667783799c (patch)
tree0df344fe4d79551b4de2460dd49449d6920669af /src
parent7ac5727659f20ec20779127c5b0dbc3ae0fa93a9 (diff)
downloadpostgresql-04ecc64310477f57c144e45e44b8ff667783799c.tar.gz
postgresql-04ecc64310477f57c144e45e44b8ff667783799c.zip
Attempt to fix MSVC breakage from Major Version patch.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 2fa7b20909c..c21ed923b7e 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -3,7 +3,7 @@ package Solution;
#
# Package that encapsulates a Visual C++ solution file generation
#
-# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.45 2008/11/14 17:11:40 meskes Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.46 2008/12/16 15:42:21 adunstan Exp $
#
use Carp;
use strict;
@@ -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";