summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-07 20:38:16 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-07 20:38:16 +0200
commit6b0bd243d70f430f9f19a61335a4a38e8a09bc11 (patch)
treeefdd186c9dc3dfb3d6f88370a7355cf4c3f6b457 /src/xine-utils/attributes.h
parent57fdbd15c343a6cd3230ccb9e73e354f14731ce8 (diff)
parentb56784ba37622f28147b6a10c7ba77f9c9fbf2f7 (diff)
downloadxine-lib-6b0bd243d70f430f9f19a61335a4a38e8a09bc11.tar.gz
xine-lib-6b0bd243d70f430f9f19a61335a4a38e8a09bc11.tar.bz2
Merge changes from main repository.
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_ */