diff options
Diffstat (limited to 'libpkgconf/stdinc.h')
-rw-r--r-- | libpkgconf/stdinc.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 <windows.h> # include <malloc.h> # 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__ |