diff options
author | Chris Robinson <[email protected]> | 2021-03-12 03:14:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-03-12 03:14:29 -0800 |
commit | c1f0555fef488df0085961710320051c650beecd (patch) | |
tree | d8dd9ab9f5841950769720262824e8d81c075828 /core | |
parent | ca0a6024a322bcc160daf197215aa4deb51fce2a (diff) |
Workaround mingw complaining about the %z formatter
Diffstat (limited to 'core')
-rw-r--r-- | core/logging.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/logging.h b/core/logging.h index b931c27e..81465929 100644 --- a/core/logging.h +++ b/core/logging.h @@ -35,7 +35,12 @@ extern FILE *gLogFile; #else -[[gnu::format(printf,3,4)]] void al_print(LogLevel level, FILE *logfile, const char *fmt, ...); +#ifdef __USE_MINGW_ANSI_STDIO +[[gnu::format(gnu_printf,3,4)]] +#else +[[gnu::format(printf,3,4)]] +#endif +void al_print(LogLevel level, FILE *logfile, const char *fmt, ...); #define TRACE(...) al_print(LogLevel::Trace, gLogFile, "[ALSOFT] (II) " __VA_ARGS__) |