summaryrefslogtreecommitdiffstats
path: root/generic/tclPlatDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-07 08:27:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-07 08:27:28 (GMT)
commit4229e3c1ff708b65c55ee82c5fec89259c461d7b (patch)
treec04b43cf0208192663f5f4c077abc67e02f796d1 /generic/tclPlatDecls.h
parent14452102b5028ba9b20ceae48237a751f97f3b43 (diff)
parent44f9dae0c50ffda941a790229ff3df1eec600aae (diff)
downloadtcl-4229e3c1ff708b65c55ee82c5fec89259c461d7b.zip
tcl-4229e3c1ff708b65c55ee82c5fec89259c461d7b.tar.gz
tcl-4229e3c1ff708b65c55ee82c5fec89259c461d7b.tar.bz2
move TCHAR definition for Cygwin from tclUnixPort.h to tclPlatDecls.h,
so it can be used for the Plat* interfaces as well
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r--generic/tclPlatDecls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h
index 37f5479..2ed5fed 100644
--- a/generic/tclPlatDecls.h
+++ b/generic/tclPlatDecls.h
@@ -31,7 +31,7 @@
* TCHAR is needed here for win32, so if it is not defined yet do it here.
* This way, we don't need to include <tchar.h> just for one define.
*/
-#if defined(_WIN32) && !defined(_TCHAR_DEFINED)
+#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(_TCHAR_DEFINED)
# if defined(_UNICODE)
typedef wchar_t TCHAR;
# else