summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-24 20:59:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-24 20:59:46 (GMT)
commitc6f6c74ebb2092a8b0b4b2e5c805d22253d19e33 (patch)
tree0d2a299dbd784e0ee28eddd73a7ed12bdaa85b9d /win
parent524f59a75aab742a5ce54b6497bec8e3bda8dced (diff)
downloadtk-c6f6c74ebb2092a8b0b4b2e5c805d22253d19e33.zip
tk-c6f6c74ebb2092a8b0b4b2e5c805d22253d19e33.tar.gz
tk-c6f6c74ebb2092a8b0b4b2e5c805d22253d19e33.tar.bz2
Change XSetCommand signature to match Xorg, needed for Cygwin
Diffstat (limited to 'win')
-rw-r--r--win/stubs.c2
-rw-r--r--win/tkWinWm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/win/stubs.c b/win/stubs.c
index 5fbc8d1..60d2dc8 100644
--- a/win/stubs.c
+++ b/win/stubs.c
@@ -253,7 +253,7 @@ void
XSetCommand(display, w, argv, argc)
Display* display;
Window w;
- CONST char** argv;
+ char** argv;
int argc;
{
}
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index ac4ea34..32768cf 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -3284,7 +3284,7 @@ WmCommandCmd(tkwin, winPtr, interp, objc, objv)
wmPtr->cmdArgc = cmdArgc;
wmPtr->cmdArgv = cmdArgv;
if (!(wmPtr->flags & WM_NEVER_MAPPED)) {
- XSetCommand(winPtr->display, winPtr->window, cmdArgv, cmdArgc);
+ XSetCommand(winPtr->display, winPtr->window, (char **) cmdArgv, cmdArgc);
}
return TCL_OK;
}