From a804dcb4b653b4b706a3c8c6816d972a8260524c Mon Sep 17 00:00:00 2001 From: Davide Paro Date: Fri, 12 Feb 2021 00:28:12 +0100 Subject: [PATCH] Avoid GCC complaining about redefinition of macros --- src/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.h b/src/log.h index bc48712..be35651 100644 --- a/src/log.h +++ b/src/log.h @@ -15,10 +15,10 @@ #define LOG_VERSION "0.1.0" -#define RXI_LOGC_PRINTF_ATTRIB(n, m) - #if defined __GNUC__ # define RXI_LOGC_PRINTF_ATTRIB(n, m) __attribute__((format(printf, n, m))) +#else +# define RXI_LOGC_PRINTF_ATTRIB(n, m) #endif