summaryrefslogtreecommitdiffstats
path: root/generic/tclMain.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-11-05 08:16:45 (GMT)
committernijtmans <nijtmans@noemail.net>2010-11-05 08:16:45 (GMT)
commit49fd7c8005a1490c65eb6488eda416376ff2afce (patch)
treef99351a686392e8965ee541aeee988d8da17931b /generic/tclMain.c
parent2a4a79726cc6a12cd6ec00a7e9394560ff568d10 (diff)
downloadtcl-49fd7c8005a1490c65eb6488eda416376ff2afce.zip
tcl-49fd7c8005a1490c65eb6488eda416376ff2afce.tar.gz
tcl-49fd7c8005a1490c65eb6488eda416376ff2afce.tar.bz2
fix TCL_ASCII_MAIN usage, as the name suggests
FossilOrigin-Name: ddecce42f0be771c674af4848b78f3761adfa47c
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r--generic/tclMain.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 2695e6f..a94d68d 100644
--- a/generic/tclMain.c
+++ b/generic/tclMain.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMain.c,v 1.54 2010/11/04 23:56:07 kennykb Exp $
+ * RCS: @(#) $Id: tclMain.c,v 1.55 2010/11/05 08:16:46 nijtmans Exp $
*/
/**
@@ -18,7 +18,7 @@
* TCL_ASCII_MAIN defined. This way both Tcl_Main and Tcl_MainExW
* can be implemented, sharing the same source code.
*/
-#if defined(_WIN32) && !defined(TCL_ASCII_MAIN)
+#if defined(TCL_ASCII_MAIN)
# ifdef UNICODE
# undef UNICODE
# undef _UNICODE
@@ -652,9 +652,8 @@ Tcl_MainEx(
Tcl_Release(interp);
Tcl_Exit(exitCode);
}
-
-#ifndef TCL_ASCII_MAIN
-#undef Tcl_Main
+
+#ifndef UNICODE
void
Tcl_Main(
int argc, /* Number of arguments. */
@@ -667,6 +666,9 @@ Tcl_Main(
Tcl_FindExecutable(argv[0]);
Tcl_MainEx(argc, argv, appInitProc, Tcl_CreateInterp());
}
+#endif
+
+#ifndef TCL_ASCII_MAIN
/*
*---------------------------------------------------------------