mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Force use of "%I64d" format for 64 bit ints on MinGW.
Both this and "%lld" work, but the compiler's format checking doesn't like "%lld", so we get all sorts of spurious warnings.
This commit is contained in:
@ -88,6 +88,19 @@
|
|||||||
#define PGDLLEXPORT
|
#define PGDLLEXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* MinGW compilers accept both "%I64d" and "%lld" for 64 bit ints,
|
||||||
|
* but whine about the latter, so force the former, regardless of what
|
||||||
|
* configure found.
|
||||||
|
*/
|
||||||
|
#if __GNUC__
|
||||||
|
#ifdef INT64_FORMAT
|
||||||
|
#undef INT64_FORMAT
|
||||||
|
#undef UINT64_FORMAT
|
||||||
|
#endif
|
||||||
|
#define INT64_FORMAT "%I64d"
|
||||||
|
#define UINT64_FORMAT "%I64u"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IPC defines
|
* IPC defines
|
||||||
|
Reference in New Issue
Block a user