summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-23 20:18:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-23 20:18:52 (GMT)
commit96773e263c8e5a555e537a1c2601485918f5dc9d (patch)
tree196b0dfa46b93993128a3287ef14906e2fb8b845
parent40b25cfec8d6cb75c622b2ad7ecbbb1853f43102 (diff)
parent1b1df98eb9755670524e036036bb887b86df8079 (diff)
downloadtcl-96773e263c8e5a555e537a1c2601485918f5dc9d.zip
tcl-96773e263c8e5a555e537a1c2601485918f5dc9d.tar.gz
tcl-96773e263c8e5a555e537a1c2601485918f5dc9d.tar.bz2
small wrapper for TclWinNToHs, for change in calling convention
-rw-r--r--generic/tclStubInit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 7eb1788..4f562a7 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -53,7 +53,13 @@ static int TclSockMinimumBuffersOld(int sock, int size)
}
#endif
-#define TclWinNToHS ntohs
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define TclWinNToHS winNToHS
+static unsigned short TclWinNToHS(unsigned short ns) {
+ return ntohs(ns);
+}
+#endif
#ifdef __WIN32__
# define TclUnixWaitForFile 0