aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2009-01-06 18:37:50 +0000
committerMagnus Hagander <magnus@hagander.net>2009-01-06 18:37:50 +0000
commit2b1782fa589cc2e7812ff1673670831293a29172 (patch)
tree8eb3124299e2b4aad36d372100e68798f8ae2ec0 /src
parent32695413f3af70f58a41b666435cc6da24bc2bcf (diff)
downloadpostgresql-2b1782fa589cc2e7812ff1673670831293a29172.tar.gz
postgresql-2b1782fa589cc2e7812ff1673670831293a29172.zip
Make the MSVC build output "32-bit" at the end of the version string, the
same way the unix build now does.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index c21ed923b7e..39510303616 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.46 2008/12/16 15:42:21 adunstan Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.47 2009/01/06 18:37:50 mha Exp $
#
use Carp;
use strict;
@@ -122,7 +122,8 @@ sub GenerateFiles
{
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}"};
s{PG_VERSION_NUM \d+}{PG_VERSION_NUM $self->{numver}};
-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)};
+ # XXX: When we support 64-bit, need to remove this hardcoding
+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) ", 32-bit"};
print O;
}
print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n";