Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd6baed

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/tools/msvc/Solution.pm

Lines changed: 1 addition & 1 deletion
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#definePG_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)

[8]ページ先頭

©2009-2025 Movatter.jp