diff options
Diffstat (limited to 'include/errors.h')
-rw-r--r-- | include/errors.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/errors.h b/include/errors.h index 1e5d41f..1cd6b70 100644 --- a/include/errors.h +++ b/include/errors.h @@ -3,18 +3,19 @@ #include <stdarg.h> -[[gnu::__format__(printf, 1, 2)]] void warn(const char *, ...); +#include "_attrs.h" + +[[_mlib_printf(1, 2)]] void warn(const char *, ...); void vwarn(const char *, va_list); -[[__noreturn__, gnu::__format__(printf, 1, 2)]] void err(const char *, ...); -[[__noreturn__, gnu::__format__(printf, 2, 3)]] void cerr(int, const char *, - ...); +[[__noreturn__, _mlib_printf(1, 2)]] void err(const char *, ...); +[[__noreturn__, _mlib_printf(2, 3)]] void cerr(int, const char *, ...); extern const char *__mlib_errors_progname; void mlib_setprogname(const char *); -[[gnu::__always_inline__]] +[[_mlib_inline]] static inline const char * mlib_progname(void) { |