summaryrefslogtreecommitdiffstats
path: root/generic/tclPlatDecls.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-13 06:46:56 (GMT)
committernijtmans <nijtmans>2010-01-13 06:46:56 (GMT)
commit4823387a0b6e54dc2e2c9718e2b729224fb7260a (patch)
treeb75b8bc167a7e17a11d9b03e2f9f37e3ff845fde /generic/tclPlatDecls.h
parent56d7490c09f06016e69f254acddad4390e66e924 (diff)
downloadtcl-4823387a0b6e54dc2e2c9718e2b729224fb7260a.zip
tcl-4823387a0b6e54dc2e2c9718e2b729224fb7260a.tar.gz
tcl-4823387a0b6e54dc2e2c9718e2b729224fb7260a.tar.bz2
Fix TCL_LL_MODIFIER for Cygwin
and various other minor CYGWIN compilation problems
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r--generic/tclPlatDecls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h
index 44358c2..bcd8fc3 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.34 2009/12/21 23:25:40 nijtmans Exp $
+ * RCS: @(#) $Id: tclPlatDecls.h,v 1.35 2010/01/13 06:46:56 nijtmans Exp $
*/
#ifndef _TCLPLATDECLS
@@ -26,7 +26,9 @@
/*
* Pull in the typedef of TCHAR for windows.
*/
-#if defined(__WIN32__) && !defined(_TCHAR_DEFINED)
+#if defined(__CYGWIN__)
+ typedef char TCHAR;
+#elif defined(__WIN32__) && !defined(_TCHAR_DEFINED)
# include <tchar.h>
# ifndef _TCHAR_DEFINED
/* Borland seems to forget to set this. */
@@ -37,8 +39,6 @@
/* MSVC++ misses this. */
typedef _TCHAR TCHAR;
# endif
-#elif defined(__CYGWIN__)
- typedef char TCHAR;
#endif
/* !BEGIN!: Do not edit below this line. */