summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2009-11-06 15:52:42 -0500
committerArnaud Fontaine <arnau@debian.org>2010-11-14 19:52:37 +0900
commitbb143c54e578f69f33dab39fbdc62d2e9bb806cc (patch)
tree1fe011effcaf8c7384f5c18c5e62a72500a6bc73
parent2ac7acd95bc775af21f65d8c5426e92d28780ab8 (diff)
downloadxcb-util-bb143c54e578f69f33dab39fbdc62d2e9bb806cc.tar.gz
Deprecate namespaceless pre-defined atoms
Signed-off-by: Peter Harris <pharris@opentext.com>
-rw-r--r--atom/xcb_atom.h.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/atom/xcb_atom.h.m4 b/atom/xcb_atom.h.m4
index 3579211..0eb57d2 100644
--- a/atom/xcb_atom.h.m4
+++ b/atom/xcb_atom.h.m4
@@ -40,7 +40,17 @@ char *xcb_atom_name_by_screen(const char *base, uint8_t screen);
char *xcb_atom_name_by_resource(const char *base, uint32_t resource);
char *xcb_atom_name_unique(const char *base, uint32_t id);
-define(`DO', `extern const xcb_atom_t $1;')dnl
+#ifndef X_DEPRECATED
+#ifdef __GNUC__
+#define X_DEPRECATED __attribute__((deprecated))
+#else
+#define X_DEPRECATED
+#endif
+#endif
+
+/* These constants are deprecated in favour of XCB_ATOM_*
+ from xproto.h */
+define(`DO', `extern const xcb_atom_t $1 X_DEPRECATED;')dnl
include(atomlist.m4)`'dnl
#ifdef __cplusplus