summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-08-20 08:59:36 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-08-20 08:59:36 (GMT)
commita7acd6c685404c33893a85e5104084d4aa8a8fbd (patch)
tree807dbba5af2220d8b1e8baf1533e52017acef1cc /generic/tclStubInit.c
parent0e37afeb6d8b87df2d7b61a13aeea8af0f57b5d6 (diff)
downloadtcl-a7acd6c685404c33893a85e5104084d4aa8a8fbd.zip
tcl-a7acd6c685404c33893a85e5104084d4aa8a8fbd.tar.gz
tcl-a7acd6c685404c33893a85e5104084d4aa8a8fbd.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)