Attempt to fix MSVC breakage from Major Version patch.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 16 Dec 2008 15:42:21 +0000 (15:42 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 16 Dec 2008 15:42:21 +0000 (15:42 +0000)
src/tools/msvc/Solution.pm

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