aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/include/gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/include/gc.h')
-rw-r--r--nx-X11/programs/Xserver/include/gc.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/include/gc.h b/nx-X11/programs/Xserver/include/gc.h
index 77c2f20c6..1c0c90d3e 100644
--- a/nx-X11/programs/Xserver/include/gc.h
+++ b/nx-X11/programs/Xserver/include/gc.h
@@ -51,7 +51,13 @@ SOFTWARE.
#define GC_H
#include <X11/X.h> /* for GContext, Mask */
+
+#ifndef _XTYPEDEF_POINTER
+/* Don't let Xdefs.h define 'pointer' */
+#define _XTYPEDEF_POINTER 1
+#endif /* _XTYPEDEF_POINTER */
#include <X11/Xdefs.h> /* for Bool */
+
#include <X11/Xproto.h>
#include "screenint.h" /* for ScreenPtr */
#include "pixmap.h" /* for DrawablePtr */
@@ -103,7 +109,7 @@ extern int DoChangeGC(
typedef union {
CARD32 val;
- pointer ptr;
+ void * ptr;
} ChangeGCVal, *ChangeGCValPtr;
extern int dixChangeGC(
@@ -125,7 +131,7 @@ extern int CopyGC(
BITS32 /*mask*/);
extern int FreeGC(
- pointer /*pGC*/,
+ void * /*pGC*/,
XID /*gid*/);
extern void SetGCMask(