mirror of
https://github.com/postgres/postgres.git
synced 2026-03-09 01:31:22 -04:00
Fix warnings added in 8d9a0e85bd.
This commit is contained in:
parent
d4635b16fe
commit
52be3aae5b
1 changed files with 4 additions and 2 deletions
|
|
@ -162,11 +162,13 @@ sub GenerateFiles
|
|||
|| confess "Could not open pg_config.h.win32\n";
|
||||
open(O, ">src\\include\\pg_config.h")
|
||||
|| confess "Could not write to pg_config.h\n";
|
||||
my $extraver = $self->{options}->{extraver};
|
||||
$extraver = '' unless defined $extraver;
|
||||
while (<I>)
|
||||
{
|
||||
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}$self->{options}->{extraver}"};
|
||||
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}$extraver"};
|
||||
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}$self->{options}->{extraver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER) ", $bits-bit"};
|
||||
s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY(z)\n#define PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER) ", $bits-bit"};
|
||||
print O;
|
||||
}
|
||||
print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue