summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-07 18:34:07 +0100
commit13ef1266e96335725e4b00cbe84753cfb1d9c52c (patch)
tree1f06fe28c309b2b5e2f24bc4cf440212c717b9cc /src/xine-utils/attributes.h
parent78689bf5bbd1dbe879d50aa0667db4603230390b (diff)
downloadxine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.gz
xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.bz2
Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r--src/xine-utils/attributes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index 4d22226ac..b533286c8 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -69,4 +69,16 @@
# endif
#endif
+/* Format attributes */
+#ifdef SUPPORT_ATTRIBUTE_FORMAT
+# define XINE_FORMAT_PRINTF(fmt,var) __attribute__((format(printf, fmt, var)))
+#else
+# define XINE_FORMAT_PRINTF(fmt,var)
+#endif
+#ifdef SUPPORT_ATTRIBUTE_FORMAT_ARG
+# define XINE_FORMAT_PRINTF_ARG(fmt) __attribute__((format_arg(fmt)))
+#else
+# define XINE_FORMAT_PRINTF_ARG(fmt)
+#endif
+
#endif /* ATTRIBUTE_H_ */