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

Commit52d01c2

Browse files
committed
Force use of "%I64d" format for 64 bit ints on MinGW.
Both this and "%lld" work, but the compiler's format checking doesn'tlike "%lld", so we get all sorts of spurious warnings.
1 parentc43d079 commit52d01c2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎src/include/port/win32.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@
8888
#definePGDLLEXPORT
8989
#endif
9090

91+
/*
92+
* MinGW compilers accept both "%I64d" and "%lld" for 64 bit ints,
93+
* but whine about the latter, so force the former, regardless of what
94+
* configure found.
95+
*/
96+
#if__GNUC__
97+
#ifdefINT64_FORMAT
98+
#undef INT64_FORMAT
99+
#undef UINT64_FORMAT
100+
#endif
101+
#defineINT64_FORMAT "%I64d"
102+
#defineUINT64_FORMAT "%I64u"
103+
#endif
91104

92105
/*
93106
*IPC defines

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp