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 <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2009-02-19 19:56:41 +01:00
parent e673e45f58
commit 6d3e71d428

View File

@@ -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