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

Commita42f8d9

Browse files
committed
Fix macro-redefinition warning on MSVC.
In commit9d6b160, I tweaked pg_config.h.win32 to use"#define HAVE_LONG_LONG_INT_64 1" rather than defining it as empty,for consistency with what happens in an autoconf'd build.But Solution.pm injects another definition of that macro intoecpg_config.h, leading to justifiable (though harmless) compiler whining.Make that one consistent too. Back-patch, like the previous patch.Discussion:https://postgr.es/m/CAEepm=1dWsXROuSbRg8PbKLh0S=8Ou-V8sr05DxmJOF5chBxqQ@mail.gmail.com
1 parent727add8 commita42f8d9

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
@@ -399,7 +399,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
399399
|| confess"Could not open ecpg_config.h";
400400
print O<<EOF;
401401
#if (_MSC_VER > 1200)
402-
#define HAVE_LONG_LONG_INT_64
402+
#define HAVE_LONG_LONG_INT_64 1
403403
#define ENABLE_THREAD_SAFETY 1
404404
EOF
405405
print O"#define USE_INTEGER_DATETIMES 1\n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp