summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-05-03 14:34:45 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-05-03 14:34:45 +0100
commit90bb53f8c9b7ca3db6841a5005af791b93782d96 (patch)
treedfb47862d7bb0ada90ce2bbc32a781f24ed3774a /src
parent8d953c5c5cac93671c779cbf9176c6115e7294fa (diff)
downloadxine-lib-90bb53f8c9b7ca3db6841a5005af791b93782d96.tar.gz
xine-lib-90bb53f8c9b7ca3db6841a5005af791b93782d96.tar.bz2
Add support for "deprecated" attribute.
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/attributes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index 563832e5c..2085be571 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -63,6 +63,12 @@
# define XINE_SENTINEL
#endif
+#ifdef SUPPORT_ATTRIBUTE_DEPRECATED
+# define XINE_DEPRECATED __attribute__((__deprecated__))
+#else
+# define XINE_DEPRECATED
+#endif
+
#ifndef __attr_unused
# ifdef SUPPORT_ATTRIBUTE_UNUSED
# define __attr_unused __attribute__((__unused__))