diff options
author | David Robillard <d@drobilla.net> | 2023-04-05 16:30:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-06 07:19:11 -0400 |
commit | f43066a36f98b89b4d853d3168ff0fe2edeb41d7 (patch) | |
tree | 05ab27bcf7bbe2b1f7849771c09f1cce5f6a6642 /src/attributes.h | |
parent | c852ef7fbfaf00189f771f0163d796b0b73437ca (diff) | |
download | serd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.tar.gz serd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.tar.bz2 serd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.zip |
Improve pretty-printing of lists and inline subjects
Diffstat (limited to 'src/attributes.h')
-rw-r--r-- | src/attributes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/attributes.h b/src/attributes.h index bf4e2658..11c699f3 100644 --- a/src/attributes.h +++ b/src/attributes.h @@ -4,6 +4,12 @@ #ifndef SERD_SRC_ATTRIBUTES_H #define SERD_SRC_ATTRIBUTES_H +#if defined(__GNUC__) +# define SERD_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1))) +#else +# define SERD_LOG_FUNC(fmt, arg1) +#endif + #ifdef __GNUC__ # define SERD_MALLOC_FUNC __attribute__((malloc)) #else |