summaryrefslogtreecommitdiff
path: root/src/xcb.h
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2006-03-13 17:49:17 -0800
committerIan Osgood <iano@quirkster.com>2006-03-13 17:49:17 -0800
commita810d1ffe4825b9359f13ebb395f5f681961fc89 (patch)
tree03c4e33936449116dc19e3521a603be59b3714bf /src/xcb.h
parentbe1302b6efb33967bce5356af58e3e0ae3b19363 (diff)
Remove dependencies on Xmd.h and X.h
(Still including X.h until defs are moved to xproto.xml and xcb-util and xcb-demo are fixed to use them.)
Diffstat (limited to 'src/xcb.h')
-rw-r--r--src/xcb.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/xcb.h b/src/xcb.h
index 68c32a8..18785ab 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -28,7 +28,19 @@
#ifndef __XCB_H
#define __XCB_H
#include <sys/types.h>
-#include <X11/Xmd.h>
+
+/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#include <stdint.h>
+
+typedef uint8_t BYTE;
+typedef uint8_t BOOL;
+typedef uint8_t CARD8;
+typedef uint16_t CARD16;
+typedef uint32_t CARD32;
+typedef int8_t INT8;
+typedef int16_t INT16;
+typedef int32_t INT32;
+
#include <X11/X.h>
#include <sys/uio.h>
#include <pthread.h>