summaryrefslogtreecommitdiffstats
path: root/generic/tclIntPlatDecls.h
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-08-24 06:29:44 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-08-24 06:29:44 (GMT)
commitd44ebaa91d3303249927bc2b406b17cf966afe5e (patch)
treef085ee55e4005509e47547479424160363661ee4 /generic/tclIntPlatDecls.h
parent7a3075e604cf374708b641c596913c943cbb5cfa (diff)
downloadtcl-d44ebaa91d3303249927bc2b406b17cf966afe5e.zip
tcl-d44ebaa91d3303249927bc2b406b17cf966afe5e.tar.gz
tcl-d44ebaa91d3303249927bc2b406b17cf966afe5e.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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h
index 34a23a4..1e68c9c 100644
--- a/generic/tclIntPlatDecls.h
+++ b/generic/tclIntPlatDecls.h
@@ -845,7 +845,10 @@ extern TclIntPlatStubs *tclIntPlatStubsPtr;
#undef TclpLocaltime_unix
#undef TclpGmtime_unix
-#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