summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-22 14:30:28 -0800
committerKeith Packard <keithp@keithp.com>2014-01-23 10:11:40 -0800
commit1315b0114516c2f4ed42e288b8294ed6494141a9 (patch)
tree5e667f8484565eeadd21a78763db1920524b1be8
parent60f45bcf2fb3ea0c70073cf982bbf9fa40458456 (diff)
Add _XITYPEDEF_POINTER to dix-config.hwarning-fixes
Just like the pointer type from Xdefs.h, the Pointer type from XIproto.h collides with local declarations of variables using the same name. XIproto.h can use _XITYPEDEF_POINTER to avoid declaring the unnecessary pointer type. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--include/dix-config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index 55cfe4710..30456cbae 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
@@ -472,6 +472,9 @@
/* Don't let Xdefs.h define 'pointer' */
#define _XTYPEDEF_POINTER 1
+/* Don't let XIproto define 'Pointer' */
+#define _XITYPEDEF_POINTER 1
+
/* Ask fontsproto to make font path element names const */
#define FONT_PATH_ELEMENT_NAME_CONST 1