diff options
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index a13b897..fb4cbdc 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tcl.h,v 1.293 2009/11/30 23:10:38 nijtmans Exp $ + * RCS: @(#) $Id: tcl.h,v 1.294 2009/12/21 23:25:39 nijtmans Exp $ */ #ifndef _TCL @@ -129,6 +129,12 @@ extern "C" { #define TCL_DECLARE_MUTEX(name) #endif +#if defined(__CYGWIN__) && defined(__WIN32__) +/* Cygwin/win32 needs winsock2.h to be included BEFORE stdio.h, + * otherwise there will be symbol conflicts with sys/types.h! */ +# include <winsock2.h> +#endif + /* * Tcl's public routine Tcl_FSSeek() uses the values SEEK_SET, SEEK_CUR, and * SEEK_END, all #define'd by stdio.h . |