@@ -162,11 +162,13 @@ sub GenerateFiles
162
162
|| confess" Could not open pg_config.h.win32\n " ;
163
163
open (O," >src\\ include\\ pg_config.h" )
164
164
|| confess" Could not write to pg_config.h\n " ;
165
+ my $extraver =$self -> {options }-> {extraver };
166
+ $extraver =' ' unless defined $extraver ;
165
167
while (<I>)
166
168
{
167
- s { PG_VERSION "[^"]+"} { PG_VERSION "$self ->{strver}$self ->{options}->{ extraver} "} ;
169
+ s { PG_VERSION "[^"]+"} { PG_VERSION "$self ->{strver}$extraver "} ;
168
170
s { PG_VERSION_NUM\d +} { PG_VERSION_NUM$self ->{numver}} ;
169
- 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"} ;
171
+ 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"} ;
170
172
print O;
171
173
}
172
174
print O" #define PG_MAJORVERSION\" $self ->{majorver}\"\n " ;