diff options
author | nijtmans <nijtmans> | 2010-05-21 12:18:17 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-05-21 12:18:17 (GMT) |
commit | 5b13f1d368442b4edfeba1b28cdd7546f4e27256 (patch) | |
tree | c039072f1625d73a9fe7bb523fc746025a610fbc /generic/tclPlatDecls.h | |
parent | 06144449abc54195262aec969ae727fad584e90e (diff) | |
download | tcl-5b13f1d368442b4edfeba1b28cdd7546f4e27256.zip tcl-5b13f1d368442b4edfeba1b28cdd7546f4e27256.tar.gz tcl-5b13f1d368442b4edfeba1b28cdd7546f4e27256.tar.bz2 |
installData.tcl: Make sure that copyDir only receives normalized paths.
tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN.
tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN.
*.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch.
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r-- | generic/tclPlatDecls.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h index 5718b96..7597527 100644 --- a/generic/tclPlatDecls.h +++ b/generic/tclPlatDecls.h @@ -6,7 +6,7 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclPlatDecls.h,v 1.27.2.1 2010/02/07 22:16:54 nijtmans Exp $ + * RCS: @(#) $Id: tclPlatDecls.h,v 1.27.2.2 2010/05/21 12:18:17 nijtmans Exp $ */ #ifndef _TCLPLATDECLS @@ -26,18 +26,12 @@ /* * Pull in the typedef of TCHAR for windows. */ -#if defined(__CYGWIN__) - typedef char TCHAR; -#elif defined(__WIN32__) && !defined(_TCHAR_DEFINED) +#if defined(__WIN32__) && !defined(_TCHAR_DEFINED) # include <tchar.h> # ifndef _TCHAR_DEFINED /* Borland seems to forget to set this. */ - typedef _TCHAR TCHAR; -# define _TCHAR_DEFINED -# endif -# if defined(_MSC_VER) && defined(__STDC__) - /* MSVC++ misses this. */ typedef _TCHAR TCHAR; +# define _TCHAR_DEFINED # endif #endif |