X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/49b23c5a9b0198bb382dcf43c458d46fcf2fa809..c177cb3800a9a68d79b2812f0ffcb9479abd6eb8:/interface.h diff --git a/interface.h b/interface.h index 46d338b4..7abf9c41 100644 --- a/interface.h +++ b/interface.h @@ -26,6 +26,8 @@ #include "os-proto.h" #endif +#include "funcattrs.h" + /* snprintf et al */ #include @@ -35,19 +37,13 @@ #endif #if !defined(HAVE_SNPRINTF) -int snprintf(char *, size_t, const char *, ...) -#ifdef __ATTRIBUTE___FORMAT_OK - __attribute__((format(printf, 3, 4))) -#endif /* __ATTRIBUTE___FORMAT_OK */ - ; +int snprintf(char *, size_t, FORMAT_STRING(const char *), ...) + PRINTFLIKE(3, 4); #endif /* !defined(HAVE_SNPRINTF) */ #if !defined(HAVE_VSNPRINTF) -int vsnprintf(char *, size_t, const char *, va_list) -#ifdef __ATTRIBUTE___FORMAT_OK - __attribute__((format(printf, 3, 0))) -#endif /* __ATTRIBUTE___FORMAT_OK */ - ; +int vsnprintf(char *, size_t, FORMAT_STRING(const char *), va_list) + PRINTFLIKE(3, 0); #endif /* !defined(HAVE_VSNPRINTF) */ #ifndef HAVE_STRLCAT