diff options
author | hobbs <hobbs@noemail.net> | 2002-09-27 00:48:05 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-09-27 00:48:05 (GMT) |
commit | 81319d37568df321e37029150632d922034addf1 (patch) | |
tree | ac500753c542a0bf349fde96c932ce0bbe716471 /win/tkWinPort.h | |
parent | fb85a49f270ae4db34f2550b3ecf3a3371905a87 (diff) | |
download | tk-81319d37568df321e37029150632d922034addf1.zip tk-81319d37568df321e37029150632d922034addf1.tar.gz tk-81319d37568df321e37029150632d922034addf1.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.
FossilOrigin-Name: 85aa3e209016ec5dccf66dd0595b87989845a100
Diffstat (limited to 'win/tkWinPort.h')
-rw-r--r-- | win/tkWinPort.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/win/tkWinPort.h b/win/tkWinPort.h index 9b327a5..192ed84 100644 --- a/win/tkWinPort.h +++ b/win/tkWinPort.h @@ -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: tkWinPort.h,v 1.7 1999/11/19 22:00:19 hobbs Exp $ + * RCS: @(#) $Id: tkWinPort.h,v 1.8 2002/09/27 00:48:06 hobbs Exp $ */ #ifndef _WINPORT @@ -42,7 +42,11 @@ #endif #include <time.h> -#include <tchar.h> +#ifdef __CYGWIN__ +# define _T(x) L##x +#else +# include <tchar.h> +#endif #ifdef _MSC_VER # define hypot _hypot |