aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/include/gc.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-12-28 13:03:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-12-28 13:03:52 +0100
commitedce25213ffc81389909c827c9aaac27b736b483 (patch)
treea97ab98a06147cd5fb194063a9984dc3973fba55 /nx-X11/programs/Xserver/include/gc.h
parente9f44221b2520a1d894b3c125269b5d10438453b (diff)
parent68dd0b52e13c844d662192654fb10cb993257a59 (diff)
downloadnx-libs-edce25213ffc81389909c827c9aaac27b736b483.tar.gz
nx-libs-edce25213ffc81389909c827c9aaac27b736b483.tar.bz2
nx-libs-edce25213ffc81389909c827c9aaac27b736b483.zip
Merge branch 'sunweaver-pr/change-pointer-into-void' into 3.6.x
Attributes GH PR #54: https://github.com/ArcticaProject/nx-libs/pull/54
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(