summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-11-16 14:57:07 (GMT)
committernijtmans <nijtmans@noemail.net>2010-11-16 14:57:07 (GMT)
commit2d6dcc4ea154697d83cc404611bc404bdcfd6010 (patch)
treea78a8afdbe72828363e67aeaccb2998ad66b7d29
parent2e0829b98e08415529c7a30a29841787d60c83f8 (diff)
downloadtcl-2d6dcc4ea154697d83cc404611bc404bdcfd6010.zip
tcl-2d6dcc4ea154697d83cc404611bc404bdcfd6010.tar.gz
tcl-2d6dcc4ea154697d83cc404611bc404bdcfd6010.tar.bz2
[Bug #3110161]: Extensions using TCHAR don't compile on VS2005 SP1
FossilOrigin-Name: 54cb3a0c1d8577f56cbe7b316f04bd1e0fbf201c
-rw-r--r--ChangeLog2
-rw-r--r--win/tclWinPort.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 073b151..8388e7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
* win/cat.c to reality. See for what's missing:
* win/tcl.m4 <https://sourceforge.net/apps/trac/mingw-w64/wiki/Unicode%20apps>
* win/configure (re-generated)
+ * win/tclWinPort.h [Bug #3110161]: Extensions using TCHAR don't compile
+ on VS2005 SP1
2010-11-15 Andreas Kupries <andreask@activestate.com>
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 084d97b..22d523e 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.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: tclWinPort.h,v 1.62 2010/09/28 15:13:55 rmax Exp $
+ * RCS: @(#) $Id: tclWinPort.h,v 1.63 2010/11/16 14:57:07 nijtmans Exp $
*/
#ifndef _TCLWINPORT
@@ -58,6 +58,10 @@
typedef _TCHAR TCHAR;
# define _TCHAR_DEFINED
#endif
+#if defined(_MSC_VER) && defined(__STDC__)
+ /* VS2005 SP1 misses this. See [Bug #3110161] */
+ typedef _TCHAR TCHAR;
+#endif
/*
*---------------------------------------------------------------------------