summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 21:01:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 21:01:04 (GMT)
commitc2eaef98e73b309df7c2e262fc0c982a634d0f9d (patch)
tree358e45d71a9f62548cc8770fb3f2bb2a6bf30b81 /macosx/tkMacOSXPort.h
parentc1d2b9d95856fe913236eec23533b0bd522726d3 (diff)
downloadtk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.zip
tk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.tar.gz
tk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.tar.bz2
Add 7 X11 functions to the aqua stub table, which makes them accessable to stubbed extensions.
They were defined in tkMacOSXPort.h as macro's, which is not 'right'
Diffstat (limited to 'macosx/tkMacOSXPort.h')
-rw-r--r--macosx/tkMacOSXPort.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/macosx/tkMacOSXPort.h b/macosx/tkMacOSXPort.h
index 8961c25..ba6e329 100644
--- a/macosx/tkMacOSXPort.h
+++ b/macosx/tkMacOSXPort.h
@@ -111,12 +111,19 @@
* no-op functions on the Macintosh.
*/
-#define XFlush(display)
-#define XFree(data) {if ((data) != NULL) ckfree(data);}
-#define XGrabServer(display)
-#define XNoOp(display) {display->request++;}
-#define XUngrabServer(display)
-#define XSynchronize(display, bool) {display->request++;}
+#undef XFlush
+#define XFlush(display) (0)
+#undef XFree
+#define XFree(data) (((data) != NULL) ? (ckfree(data),0) : 0)
+#undef XGrabServer
+#define XGrabServer(display) (0)
+#undef XNoOp
+#define XNoOp(display) (display->request++,0)
+#undef XUngrabServer
+#define XUngrabServer(display) (0)
+#undef XSynchronize
+#define XSynchronize(display, onoff) (display->request++,NULL)
+#undef XVisualIDFromVisual
#define XVisualIDFromVisual(visual) (visual->visualid)
/*