aboutsummaryrefslogtreecommitdiffstats
path: root/core/logging.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-03-12 03:14:29 -0800
committerChris Robinson <[email protected]>2021-03-12 03:14:29 -0800
commitc1f0555fef488df0085961710320051c650beecd (patch)
treed8dd9ab9f5841950769720262824e8d81c075828 /core/logging.h
parentca0a6024a322bcc160daf197215aa4deb51fce2a (diff)
Workaround mingw complaining about the %z formatter
Diffstat (limited to 'core/logging.h')
-rw-r--r--core/logging.h7
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__)