summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 08:59:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 08:59:36 (GMT)
commit45f8aafc9099cb3ee0ae65d68f59d57ba5cec4d9 (patch)
tree807dbba5af2220d8b1e8baf1533e52017acef1cc /generic/tclStubInit.c
parent53c3622234fd4f6f0942c48e474c2ca166c3c6bd (diff)
downloadtcl-45f8aafc9099cb3ee0ae65d68f59d57ba5cec4d9.zip
tcl-45f8aafc9099cb3ee0ae65d68f59d57ba5cec4d9.tar.gz
tcl-45f8aafc9099cb3ee0ae65d68f59d57ba5cec4d9.tar.bz2
Remove wrapper macro for ntohs(): unnecessary, because it doesn't require an initialized winsock_2 library
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 7b73ee3..3be6b45 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -74,6 +74,7 @@ MODULE_SCOPE TclIntPlatStubs tclIntPlatStubs;
MODULE_SCOPE TclPlatStubs tclPlatStubs;
MODULE_SCOPE TclStubs tclStubs;
MODULE_SCOPE TclTomMathStubs tclTomMathStubs;
+#define TclWinNToHS ntohs
#ifdef __WIN32__
# define TclUnixWaitForFile 0
@@ -112,12 +113,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)