summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-11 21:50:46 (GMT)
committernijtmans <nijtmans>2010-10-11 21:50:46 (GMT)
commiteac7d6560603161bdf15eff58f8e556341cd9a50 (patch)
tree8444a245a1b8372dd13e16eb7ccc5a955a5ae727 /generic/tkDecls.h
parentaff4deb1051f578be23a9c8449439e912d976c08 (diff)
downloadtk-eac7d6560603161bdf15eff58f8e556341cd9a50.zip
tk-eac7d6560603161bdf15eff58f8e556341cd9a50.tar.gz
tk-eac7d6560603161bdf15eff58f8e556341cd9a50.tar.bz2
[FRQ 491789]: "setargv() doesn't support a unicode
cmdline" implemented for Tk on MSVC++
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r--generic/tkDecls.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h
index 280c0c9..53a9458 100644
--- a/generic/tkDecls.h
+++ b/generic/tkDecls.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: tkDecls.h,v 1.50 2010/08/21 16:35:34 nijtmans Exp $
+ * RCS: @(#) $Id: tkDecls.h,v 1.51 2010/10/11 21:50:46 nijtmans Exp $
*/
#ifndef _TKDECLS
@@ -1729,14 +1729,18 @@ extern const TkStubs *tkStubsPtr;
/* !END!: Do not edit above this line. */
-#undef TCL_STORAGE_CLASS
-#define TCL_STORAGE_CLASS DLLIMPORT
-
/* Functions that don't belong in the stub table */
#undef Tk_MainEx
#undef Tk_Init
#undef Tk_SafeInit
#undef Tk_CreateConsoleWindow
-#endif /* _TKDECLS */
+#if defined(_WIN32) && defined(UNICODE)
+EXTERN void Tk_MainExW(int, TCHAR **, Tcl_AppInitProc *, Tcl_Interp *);
+# define Tk_MainEx Tk_MainExW
+#endif
+#undef TCL_STORAGE_CLASS
+#define TCL_STORAGE_CLASS DLLIMPORT
+
+#endif /* _TKDECLS */