Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cd6baed

Browse files
committed
Remove reinvention of stringify macro.
We already have CppAsString2, there's no need for the MSVC support to re-invent a macro to do that (and especially not to inject it in as ugly a way as this). Discussion: https://postgr.es/m/CADkLM=c+hm2rc0tkKgC-ZgrLttHT2KkfppE+BC-=i-xj+7V-TQ@mail.gmail.com
1 parent ffac599 commit cd6baed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/Solution.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ sub GenerateFiles
156156
{
157157
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}$extraver"};
158158
s{PG_VERSION_NUM \d+}{PG_VERSION_NUM $self->{numver}};
159-
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"};
159+
s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, compiled by Visual C++ build " CppAsString2(_MSC_VER) ", $bits-bit"};
160160
print $o $_;
161161
}
162162
print $o "#define PG_MAJORVERSION \"$self->{majorver}\"\n";

0 commit comments

Comments
 (0)