Tcl Source Code

Artifact [994176e955]
Login

Artifact 994176e955fa8fd98c5c528a3a6ddaee7ab3b1cb:

Attachment "patch" to ticket [442178ffff] added by mdejong 2001-07-18 05:11:52.
Index: generic/tclPlatDecls.h
===================================================================
RCS file: /cvsroot/tcl/tcl/generic/tclPlatDecls.h,v
retrieving revision 1.6
diff -u -r1.6 tclPlatDecls.h
--- generic/tclPlatDecls.h	2000/08/20 03:51:23	1.6
+++ generic/tclPlatDecls.h	2001/07/17 21:56:42
@@ -17,8 +17,13 @@
  *  of the core are matching against your project build for these
  *  public functions.  BE AWARE.
  */
-#if defined(__WIN32__) && !defined(_INC_TCHAR)
-#include <tchar.h>
+
+#if defined(_MSC_VER) || defined(__MINGW32__)
+# include <tchar.h>
+#elif defined(__CYGWIN__)
+# define WIN32_LEAN_AND_MEAN
+#  include <windows.h>
+# undef  WIN32_LEAN_AND_MEAN
 #endif
 
 /* !BEGIN!: Do not edit below this line. */