[Xcb-commit] atom

Peter Harris peterh at kemper.freedesktop.org
Mon Nov 9 07:16:48 PST 2009


 atom/xcb_atom.h.m4 |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit b4438c430fd4c1de72c4509858beb8e20b3eb6cd
Author: Peter Harris <pharris at opentext.com>
Date:   Fri Nov 6 15:52:42 2009 -0500

    Deprecate namespaceless pre-defined atoms
    
    Signed-off-by: Peter Harris <pharris at opentext.com>

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


More information about the xcb-commit mailing list