[PATCH] Xlib: Fix up declaration of Bool and Status types
Jeremy Huddleston
jeremyhu at freedesktop.org
Mon Apr 6 19:27:20 PDT 2009
On Apr 6, 2009, at 18:50, Jeremy Huddleston wrote:
> Then that screws up when Xdefs.h is included after Xlib.h ... why
> doesn't Xlib.h just #include Xdefs.h to get these?
This seems correct to me... and all the X11 libs successfully rebuilt
with it, so I don't see any reason against it... any objections:
diff --git a/include/X11/Xlib.h b/include/X11/Xlib.h
index 44557ea..83d649b 100644
--- a/include/X11/Xlib.h
+++ b/include/X11/Xlib.h
@@ -106,9 +106,9 @@ _Xmblen(
#define X_HAVE_UTF8_STRING 1
typedef char *XPointer;
+typedef int Status;
-#define Bool int
-#define Status int
+#include <X11/Xdefs.h>
#define True 1
#define False 0
More information about the xorg-devel
mailing list