From 33c0a040a724970b803a22fb53c2a59ebb77dc2e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 20 Sep 2017 14:05:39 +0300 Subject: Fix MinGW GCC print format warnings --- libpkgconf/stdinc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libpkgconf/stdinc.h') diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h index 43d7eeb..a4c7c84 100644 --- a/libpkgconf/stdinc.h +++ b/libpkgconf/stdinc.h @@ -31,10 +31,13 @@ # include # include # define PATH_DEV_NULL "nul" +/* + * Fix MinGW GCC print format warnings (issue #142 is reported). + */ # ifdef _WIN64 -# define SIZE_FMT_SPECIFIER "%llu" +# define SIZE_FMT_SPECIFIER "%I64u" # else -# define SIZE_FMT_SPECIFIER "%lu" +# define SIZE_FMT_SPECIFIER "%u" # endif # ifndef ssize_t # ifndef __MINGW32__ -- cgit v1.1