summaryrefslogtreecommitdiffstats
path: root/xlib/X11
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-15 08:22:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-15 08:22:00 (GMT)
commit8681561d581302e9a8d483bbacf53bce20336336 (patch)
treea649c6b90bca86b4143501666eaddb002872ae77 /xlib/X11
parentf04bc88816f8493150db95a893ce05a5a53bd9b9 (diff)
downloadtk-8681561d581302e9a8d483bbacf53bce20336336.zip
tk-8681561d581302e9a8d483bbacf53bce20336336.tar.gz
tk-8681561d581302e9a8d483bbacf53bce20336336.tar.bz2
Switch off XLIB_ILLEGAL_ACCESS in Xlib.h, making some acess to Display only possible through macro's
Diffstat (limited to 'xlib/X11')
-rw-r--r--xlib/X11/Xlib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlib/X11/Xlib.h b/xlib/X11/Xlib.h
index a9042a4..967b815 100644
--- a/xlib/X11/Xlib.h
+++ b/xlib/X11/Xlib.h
@@ -492,11 +492,17 @@ typedef struct {
* The contents of this structure are implementation dependent.
* A Display should be treated as opaque by application code.
*/
+#ifndef XLIB_ILLEGAL_ACCESS
+typedef struct _XDisplay Display;
+#endif
+
struct _XPrivate; /* Forward declare before use for C++ */
struct _XrmHashBucketRec;
typedef struct
+#ifdef XLIB_ILLEGAL_ACCESS
_XDisplay
+#endif
{
XExtData *ext_data; /* hook for extension to hang data */
struct _XPrivate *private1;
@@ -547,7 +553,9 @@ _XDisplay
char *xdefaults; /* contents of defaults from server */
/* there is more to this structure, but it is private to Xlib */
}
+#ifdef XLIB_ILLEGAL_ACCESS
Display,
+#endif
*_XPrivDisplay;
#undef _XEVENT_