From 67e9ae14d93aeee019bf65d38192ca5c75dc99dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 17 Jun 2011 10:30:15 +0300 Subject: Add av_printf_format, for marking printf style format strings and their parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavutil/attributes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/attributes.h') diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 4abe78f3bf..ef990a1d4f 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h @@ -127,8 +127,10 @@ #ifdef __GNUC__ # define av_builtin_constant_p __builtin_constant_p +# define av_printf_format(fmtpos, attrpos) __attribute__((__format__(__printf__, fmtpos, attrpos))) #else # define av_builtin_constant_p(x) 0 +# define av_printf_format(fmtpos, attrpos) #endif #endif /* AVUTIL_ATTRIBUTES_H */ -- cgit v1.2.1