diff options
author | davygrvy <davygrvy@pobox.com> | 2001-10-10 22:36:26 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2001-10-10 22:36:26 (GMT) |
commit | 567a0db49483b26c4ce345062f3d0e60ee0b2f7d (patch) | |
tree | ee7eb0a7e2376e0fa8a35376f022114f9de057e7 /win/tclWinPort.h | |
parent | f9506f8d136fc6449b1c58e16b1ac942a73b4dc7 (diff) | |
download | tcl-567a0db49483b26c4ce345062f3d0e60ee0b2f7d.zip tcl-567a0db49483b26c4ce345062f3d0e60ee0b2f7d.tar.gz tcl-567a0db49483b26c4ce345062f3d0e60ee0b2f7d.tar.bz2 |
* win/tclWinPort.h: #include <winsock2.h> needed to get moved
to after #include <windows.h> or wierd misunderstandings took
place when -D_WIN32_WINNT=0x0400 is set for outside code that
requires knowledge of Tcl innards. General header macro magic
applied liberally...
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r-- | win/tclWinPort.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h index 9e2097d..7828010 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinPort.h,v 1.22 2001/09/20 18:33:55 hobbs Exp $ + * RCS: @(#) $Id: tclWinPort.h,v 1.23 2001/10/10 22:36:26 davygrvy Exp $ */ #ifndef _TCLWINPORT @@ -64,11 +64,12 @@ #endif #include <time.h> -#include <winsock2.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> #undef WIN32_LEAN_AND_MEAN +#define WIN32 /* BUGFIX: winsock2.h seems to need this */ +#include <winsock2.h> #ifdef BUILD_tcl # undef TCL_STORAGE_CLASS |