summaryrefslogtreecommitdiffstats
path: root/generic
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
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')
-rw-r--r--generic/tclIOSock.c2
-rw-r--r--generic/tclPlatDecls.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c
index 538ca1d..89d6c02 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.c
@@ -88,7 +88,7 @@ TclSockGetPort(
*/
#if !defined(_WIN32) && !defined(__CYGWIN__)
-# define SOCKET size_t
+# define SOCKET int
#endif
int
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