aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-06-17 10:30:15 +0300
committerMartin Storsjö <martin@martin.st>2011-06-23 20:17:44 +0300
commit67e9ae14d93aeee019bf65d38192ca5c75dc99dd (patch)
treecd1322de6f8fc955562a76d2bd6ebeb8d71df914 /libavutil/attributes.h
parent9e19704a6a04786f65478b9e9aeb470c6d1e277c (diff)
downloadffmpeg-67e9ae14d93aeee019bf65d38192ca5c75dc99dd.tar.gz
Add av_printf_format, for marking printf style format strings and their parameters
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h2
1 files changed, 2 insertions, 0 deletions
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 */