summaryrefslogtreecommitdiffstats
path: root/generic/tclIntPlatDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-24 06:33:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-24 06:33:04 (GMT)
commit67924be06177d9d2e2805c9d18d4370d5aab120d (patch)
treee9307947c3d5dddf03ef7e5a82cad587c32eaff6 /generic/tclIntPlatDecls.h
parent96773e263c8e5a555e537a1c2601485918f5dc9d (diff)
parente1f580d44308ba8f846d79d6d51ba1d8fc093712 (diff)
downloadtcl-67924be06177d9d2e2805c9d18d4370d5aab120d.zip
tcl-67924be06177d9d2e2805c9d18d4370d5aab120d.tar.gz
tcl-67924be06177d9d2e2805c9d18d4370d5aab120d.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 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