diff options
author | hobbs <hobbs> | 2002-09-27 00:48:06 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-09-27 00:48:06 (GMT) |
commit | 69453809bc2d8e724841cea27b973d20f106f58d (patch) | |
tree | ac500753c542a0bf349fde96c932ce0bbe716471 /win/winMain.c | |
parent | d629b285608deba5377feab0ddda8d9529020457 (diff) | |
download | tk-69453809bc2d8e724841cea27b973d20f106f58d.zip tk-69453809bc2d8e724841cea27b973d20f106f58d.tar.gz tk-69453809bc2d8e724841cea27b973d20f106f58d.tar.bz2 |
2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>
Added basic Cygwin support.
* win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
(SC_PATH_TKCONFIG): Likewise.
(SC_PROG_TCLSH): Likewise.
(SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin
flags. Add -mwin32 to extra_cflags and extra_ldflags.
Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW.
* win/configure: Regenerate.
* win/tkWinPort.h (tchar.h): Do not include on Cygwin.
(_T): Define for Cygwin.
* win/winMain.c (main): Conditionally define.
Diffstat (limited to 'win/winMain.c')
-rw-r--r-- | win/winMain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/winMain.c b/win/winMain.c index a5478a9..1c4e465 100644 --- a/win/winMain.c +++ b/win/winMain.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: winMain.c,v 1.12 2002/08/26 14:32:18 dgp Exp $ + * RCS: @(#) $Id: winMain.c,v 1.13 2002/09/27 00:48:06 hobbs Exp $ */ #include <tk.h> @@ -354,8 +354,8 @@ setargv(argcPtr, argvPtr) *argcPtr = argc; *argvPtr = argv; } - +#if !defined(__GNUC__) || defined(TK_TEST) /* *---------------------------------------------------------------------- * @@ -404,4 +404,5 @@ int main(int argc, char **argv) Tk_Main(argc, argv, Tcl_AppInit); return 0; } +#endif /* !__GNUC__ || TK_TEST */ |