From 6d3e71d428b1ee007339d679c26a336c8aefeade Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 19 Feb 2009 19:56:41 +0100 Subject: [PATCH] MinGW: only override PRIuMAX for GCC older than version 4 GCC has no problems with PRIuMAX with recent GCC versions, but these versions do not like I64u any longer. Signed-off-by: Johannes Schindelin --- compat/mingw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/mingw.h b/compat/mingw.h index 6219e18843..8898006278 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -200,7 +200,9 @@ int winansi_fprintf(FILE *stream, const char *format, ...) __attribute__((format #define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':') #define is_dir_sep(c) ((c) == '/' || (c) == '\\') #define PATH_SEP ';' +#if !defined(__GNUC__) || __GNUC__ < 3 #define PRIuMAX "I64u" +#endif void mingw_open_html(const char *path); #define open_html mingw_open_html