summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-04 21:48:23 (GMT)
committernijtmans <nijtmans>2010-11-04 21:48:23 (GMT)
commit259ada8fb281493b125e0b1560f2747fa91209bf (patch)
treeeca4cf58389348cf58a44d588d60ff77e45cbcba /generic/tclDecls.h
parentebb0221fdd2b89c2af2d5ee05d235debb5f0bb72 (diff)
downloadtcl-259ada8fb281493b125e0b1560f2747fa91209bf.zip
tcl-259ada8fb281493b125e0b1560f2747fa91209bf.tar.gz
tcl-259ada8fb281493b125e0b1560f2747fa91209bf.tar.bz2
[FRQ 491789]: "setargv() doesn't support a unicode cmdline" implemented for Tcl on MSVC++
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r--generic/tclDecls.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index fc9e082..a0453f3 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclDecls.h,v 1.187 2010/09/23 21:40:46 nijtmans Exp $
+ * RCS: @(#) $Id: tclDecls.h,v 1.188 2010/11/04 21:48:23 nijtmans Exp $
*/
#ifndef _TCLDECLS
@@ -3787,8 +3787,14 @@ extern const TclStubs *tclStubsPtr;
# define Tcl_SetVar(interp, varName, newValue, flags) \
(tclStubsPtr->tcl_SetVar(interp, varName, newValue, flags))
#endif
+
#if defined(_WIN32) && defined(UNICODE)
# define Tcl_FindExecutable(arg) ((Tcl_FindExecutable)((const char *)(arg)))
+# define Tcl_MainEx Tcl_MainExW
+ EXTERN void Tcl_MainExW(int argc, wchar_t **argv,
+ Tcl_AppInitProc *appInitProc, Tcl_Interp *interp);
+# define Tcl_Main(argc, argv, proc) Tcl_MainExW(argc, argv, proc, \
+ (Tcl_FindExecutable(argv[0]), (Tcl_CreateInterp)()))
#endif
#undef TCL_STORAGE_CLASS