[Xcb-commit] xcb

Jamey Sharp jamey at kemper.freedesktop.org
Thu Mar 16 12:32:03 PST 2006


 xcb/src/xcb.h      |    3 +++
 xcb/src/xcb_auth.c |   12 ++++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

New commits:
diff-tree e90239ec01b35184d5d9fe9d8b1cfb3b1596d72f (from 02c0430a4da0769e0311cd4da401c0698e83c6be)
Author: Jamey Sharp <jamey at minilop.net>
Date:   Thu Mar 16 11:27:06 2006 -0800

    The typedefs replacing Xmd.h conflict with Xmd.h. Here is a hacky workaround: FIXME!

diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
index 7998d20..204164a 100644
--- a/xcb/src/xcb.h
+++ b/xcb/src/xcb.h
@@ -32,6 +32,8 @@
 /* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
 #include <stdint.h>
 
+/* FIXME: these names conflict with those defined in Xmd.h. */
+#ifndef XMD_H
 typedef uint8_t  BYTE;
 typedef uint8_t  BOOL;
 typedef uint8_t  CARD8;
@@ -40,6 +42,7 @@ typedef uint32_t CARD32;
 typedef int8_t   INT8;
 typedef int16_t  INT16;
 typedef int32_t  INT32;
+#endif /* XMD_H */
 
 #include <X11/X.h>
 #include <sys/uio.h>
diff --git a/xcb/src/xcb_auth.c b/xcb/src/xcb_auth.c
index d72d780..f42400d 100644
--- a/xcb/src/xcb_auth.c
+++ b/xcb/src/xcb_auth.c
@@ -34,13 +34,21 @@
 #include <unistd.h>
 #include <stdlib.h>
 
-#include "xcb.h"
-#include "xcbint.h"
+/* FIXME: for the moment Xdmcp.h must be included before xcb.h because
+ * it includes Xmd.h, but config.h (normally included from xcbint.h
+ * which must be included after xcb.h) must be included before Xdmcp.h.
+ * Ow. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #ifdef HASXDMAUTH
 #include <X11/Xdmcp.h>
 #endif
 
+#include "xcb.h"
+#include "xcbint.h"
+
 enum auth_protos {
 #ifdef HASXDMAUTH
     AUTH_XA1,


More information about the xcb-commit mailing list