summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-16 14:57:07 (GMT)
committernijtmans <nijtmans>2010-11-16 14:57:07 (GMT)
commitae05668834c34d70dd008a776d47c8bf8cd8e041 (patch)
treea78a8afdbe72828363e67aeaccb2998ad66b7d29 /win/tclWinPort.h
parente02c453ac1080eb369646528c2fa0eee8510ba83 (diff)
downloadtcl-ae05668834c34d70dd008a776d47c8bf8cd8e041.zip
tcl-ae05668834c34d70dd008a776d47c8bf8cd8e041.tar.gz
tcl-ae05668834c34d70dd008a776d47c8bf8cd8e041.tar.bz2
[Bug #3110161]: Extensions using TCHAR don't compile on VS2005 SP1
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h6
1 files changed, 5 insertions, 1 deletions
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
/*
*---------------------------------------------------------------------------