Make the MSVC build output "32-bit" at the end of the version string, the
authorMagnus Hagander <magnus@hagander.net>
Tue, 6 Jan 2009 18:37:50 +0000 (18:37 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 6 Jan 2009 18:37:50 +0000 (18:37 +0000)
same way the unix build now does.

src/tools/msvc/Solution.pm

index 126c0ceb32221c338ed4faefe8ccc3a2e5fdddb2..583a7048a6cfcb8c57d7f96cd522b3b340f5f433 100644 (file)
@@ -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";