Avoid GCC complaining about redefinition of macros

This commit is contained in:
Davide Paro 2021-02-12 00:28:12 +01:00
parent 815e0d909d
commit a804dcb4b6

View File

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