@@ -3,7 +3,7 @@ package Solution;
3
3
#
4
4
# Package that encapsulates a Visual C++ solution file generation
5
5
#
6
- # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.46 2008/12/16 15:42:21 adunstan Exp $
6
+ # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.47 2009/01/06 18:37:50 mha Exp $
7
7
#
8
8
use Carp;
9
9
use strict;
@@ -122,7 +122,8 @@ sub GenerateFiles
122
122
{
123
123
s { PG_VERSION "[^"]+"} { PG_VERSION "$self ->{strver}"} ;
124
124
s { PG_VERSION_NUM\d +} { PG_VERSION_NUM$self ->{numver}} ;
125
- 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)} ;
125
+ # XXX: When we support 64-bit, need to remove this hardcoding
126
+ 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"} ;
126
127
print O;
127
128
}
128
129
print O" #define PG_MAJORVERSION\" $self ->{majorver}\"\n " ;