diff options
Diffstat (limited to 'alc/logging.h')
-rw-r--r-- | alc/logging.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/alc/logging.h b/alc/logging.h index ec6023a5..1077f08f 100644 --- a/alc/logging.h +++ b/alc/logging.h @@ -6,16 +6,9 @@ #include "opthelpers.h" -#ifdef __GNUC__ -#define DECL_FORMAT(x, y, z) __attribute__((format(x, (y), (z)))) -#else -#define DECL_FORMAT(x, y, z) -#endif - - extern FILE *gLogFile; -void al_print(FILE *logfile, const char *fmt, ...) DECL_FORMAT(printf, 2,3); +[[gnu::format(printf,2,3)]] void al_print(FILE *logfile, const char *fmt, ...); #if !defined(_WIN32) #define AL_PRINT fprintf #else |