diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-24 06:33:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-24 06:33:04 (GMT) |
commit | 3c48ab44dc2848cf9a052493f557f67fd854a786 (patch) | |
tree | e9307947c3d5dddf03ef7e5a82cad587c32eaff6 /generic/tclIntPlatDecls.h | |
parent | 53c615a311188f20c2867619c49f87289a255bfd (diff) | |
parent | a204742a21724c1f5404afff35e6450941ee13ac (diff) | |
download | tcl-3c48ab44dc2848cf9a052493f557f67fd854a786.zip tcl-3c48ab44dc2848cf9a052493f557f67fd854a786.tar.gz tcl-3c48ab44dc2848cf9a052493f557f67fd854a786.tar.bz2 |
make sure that extensions which might still use TclWinNToHS, now use ntohs directly.
Diffstat (limited to 'generic/tclIntPlatDecls.h')
-rw-r--r-- | generic/tclIntPlatDecls.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h index 7322a37..36cb918 100644 --- a/generic/tclIntPlatDecls.h +++ b/generic/tclIntPlatDecls.h @@ -525,7 +525,10 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr; #undef TclWinConvertWSAError #define TclWinConvertWSAError TclWinConvertError -#if !defined(__WIN32__) && !defined(__CYGWIN__) +#if defined(__WIN32__) || defined(__CYGWIN__) +# undef TclWinNToHS +# define TclWinNToHS ntohs +#else # undef TclpGetPid # define TclpGetPid(pid) ((unsigned long) (pid)) #endif |