diff options
author | nijtmans <nijtmans> | 2010-11-05 08:16:46 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-11-05 08:16:46 (GMT) |
commit | af7deb8aec29dc803cc0916298393e20ac753db9 (patch) | |
tree | f99351a686392e8965ee541aeee988d8da17931b /generic | |
parent | 16ad672308f5f253ee2b42cd4af2040082fee45d (diff) | |
download | tcl-af7deb8aec29dc803cc0916298393e20ac753db9.zip tcl-af7deb8aec29dc803cc0916298393e20ac753db9.tar.gz tcl-af7deb8aec29dc803cc0916298393e20ac753db9.tar.bz2 |
fix TCL_ASCII_MAIN usage, as the name suggests
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclMain.c | 12 |
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 /* *--------------------------------------------------------------- |