summaryrefslogtreecommitdiffstats
path: root/generic/tclMain.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-09-06 10:15:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-09-06 10:15:07 (GMT)
commit8e7161cdcd57f8a28cff6682062c6d766dcf2bac (patch)
tree021d5d0139bf0113cd5d866e244f4cc4c9da5f69 /generic/tclMain.c
parentb42f4ce30d519270bf8cc236a5af815a63448e69 (diff)
parentc14c0cb9b1f94390b3e110a359a5506c892cda44 (diff)
downloadtcl-8e7161cdcd57f8a28cff6682062c6d766dcf2bac.zip
tcl-8e7161cdcd57f8a28cff6682062c6d766dcf2bac.tar.gz
tcl-8e7161cdcd57f8a28cff6682062c6d766dcf2bac.tar.bz2
[RFE 1711975]: Tcl_MainEx() (like Tk_MainEx())
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r--generic/tclMain.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 114d2c3..373e3f6 100644
--- a/generic/tclMain.c
+++ b/generic/tclMain.c
@@ -620,18 +620,19 @@ Tcl_MainEx(
Tcl_Exit(exitCode);
}
-#ifndef UNICODE
-void
+#if (TCL_MAJOR_VERSION == 8) && !defined(UNICODE)
+#undef Tcl_Main
+extern DLLEXPORT void
Tcl_Main(
int argc, /* Number of arguments. */
- TCHAR **argv, /* Array of argument strings. */
+ char **argv, /* Array of argument strings. */
Tcl_AppInitProc *appInitProc)
/* Application-specific initialization
* function to call after most initialization
* but before starting to execute commands. */
{
Tcl_FindExecutable(argv[0]);
- Tcl_MainEx(argc, argv, appInitProc, Tcl_CreateInterp());
+ Tcl_MainEx(argc, argv, appInitProc, Tcl_CreateInterp());
}
#endif