summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 09:12:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 09:12:39 (GMT)
commiteb9bcac9c6ae30bb3e5f6bc298ee8238927a93e1 (patch)
treead4f6154d11316178dc93d74e7733cbb09886a7f /generic
parent655c8c52be3b109ab737475210e3cd877921076c (diff)
parentac385804788ee5d3a9ee7929a7df56b930b6b8d7 (diff)
downloadtcl-eb9bcac9c6ae30bb3e5f6bc298ee8238927a93e1.zip
tcl-eb9bcac9c6ae30bb3e5f6bc298ee8238927a93e1.tar.gz
tcl-eb9bcac9c6ae30bb3e5f6bc298ee8238927a93e1.tar.bz2
Remove wrapper macro for ntohs(): unnecessary, because it doesn't require an initialized winsock_2 library
Diffstat (limited to 'generic')
-rw-r--r--generic/tclStubInit.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 87cd4eb..7eb1788 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -53,6 +53,8 @@ static int TclSockMinimumBuffersOld(int sock, int size)
}
#endif
+#define TclWinNToHS ntohs
+
#ifdef __WIN32__
# define TclUnixWaitForFile 0
# define TclUnixCopyFile 0
@@ -89,12 +91,6 @@ void *TclWinGetTclInstance()
return hInstance;
}
-unsigned short
-TclWinNToHS(unsigned short ns)
-{
- return ntohs(ns);
-}
-
int
TclWinSetSockOpt(SOCKET s, int level, int optname,
const char *optval, int optlen)