aboutsummaryrefslogtreecommitdiff
path: root/X11
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-12 08:29:24 +0200
committermarha <marha@users.sourceforge.net>2013-07-12 08:29:24 +0200
commit8b38c5a02fec73bd9cd070399d717bb32ac46bfb (patch)
treef1d4e6e450eb3f1928da8433cd482d306aad170b /X11
parent66b46719d55e60d53b42858770d6ac40d079ab13 (diff)
downloadvcxsrv-8b38c5a02fec73bd9cd070399d717bb32ac46bfb.tar.gz
vcxsrv-8b38c5a02fec73bd9cd070399d717bb32ac46bfb.tar.bz2
vcxsrv-8b38c5a02fec73bd9cd070399d717bb32ac46bfb.zip
Synchronised file
Diffstat (limited to 'X11')
-rw-r--r--X11/Xlibint.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/X11/Xlibint.h b/X11/Xlibint.h
index ff2975fe7..e7d2487cf 100644
--- a/X11/Xlibint.h
+++ b/X11/Xlibint.h
@@ -423,14 +423,8 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
/* GetReqSized is the same as GetReq but allows the caller to specify the
* size in bytes. 'sz' must be a multiple of 4! */
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqSized(name, sz, req) \
req = (x##name##Req *) _XGetRequest(dpy, X_##name, sz)
-#else
-#define GetReqSized(name, sz, req) \
- req = (x/**/name/**/Req *) _XGetRequest(dpy, X_/**/name, sz)
-#endif
-
/*
* GetReq - Get the next available X request packet in the buffer and
@@ -441,25 +435,14 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
*
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReq(name, req) \
GetReqSized(name, SIZEOF(x##name##Req), req)
-#else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
-#define GetReq(name, req) \
- GetReqSized(name, SIZEOF(x/**/name/**/Req), req)
-#endif
/* GetReqExtra is the same as GetReq, but allocates "n" additional
bytes after the request. "n" must be a multiple of 4! */
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqExtra(name, n, req) \
GetReqSized(name, SIZEOF(x##name##Req) + n, req)
-#else
-#define GetReqExtra(name, n, req) \
- GetReqSized(name, SIZEOF(x/**/name/**/Req) + n, req)
-#endif
-
/*
* GetResReq is for those requests that have a resource ID
@@ -467,27 +450,17 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
* "rid" is the name of the resource.
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetResReq(name, rid, req) \
req = (xResourceReq *) _XGetRequest(dpy, X_##name, SIZEOF(xResourceReq)); \
req->id = (rid)
-#else
-#define GetResReq(name, rid, req) \
- req = (xResourceReq *) _XGetRequest(dpy, X_/**/name, SIZEOF(xResourceReq)); \
- req->id = (rid)
-#endif
/*
* GetEmptyReq is for those requests that have no arguments
* at all.
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
+
#define GetEmptyReq(name, req) \
req = (xReq *) _XGetRequest(dpy, X_##name, SIZEOF(xReq))
-#else
-#define GetEmptyReq(name, req) \
- req = (xReq *) _XGetRequest(dpy, X_/**/name, SIZEOF(xReq))
-#endif
/*
* MakeBigReq sets the CARD16 "req->length" to 0 and inserts a new CARD32