summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r--src/xine-utils/attributes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index dd70d4309..c2936a2a4 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -59,4 +59,12 @@
# define XINE_SENTINEL
#endif
+#ifndef __unused
+# ifdef SUPPORT_ATTRIBUTE_UNUSED
+# define __unused __attribute__((unused))
+# else
+# define __unused
+# endif
+#endif
+
#endif /* ATTRIBUTE_H_ */