[PATCH] kbproto: typedef instead of #define
Jeremy Huddleston
jeremyhu at freedesktop.org
Sun Apr 5 19:47:33 PDT 2009
The #define Status mucks up some Carbon headers on intel. See:
https://bugzilla.mozilla.org/show_bug.cgi?id=484457
Anyone who has any reason why these should not be typedefs should
speak up now.
diff --git a/XKBsrv.h b/XKBsrv.h
index 49630af..26a4ed8 100644
--- a/XKBsrv.h
+++ b/XKBsrv.h
@@ -330,9 +330,9 @@ extern int DeviceButtonPress,DeviceButtonRelease;
#undef IsKeypadKey
#define IsKeypadKey(s) XkbKSIsKeypad(s)
-#define Status int
-#define XPointer pointer
-#define Display struct _XDisplay
+typedef int Status;
+typedef pointer XPointer;
+typedef struct _XDisplay Display;
#ifndef True
#define True 1
More information about the xorg-devel
mailing list