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)
commit4c681f294b0469fff7d65e9c8718ccf2ff128b2c (patch)
tree807dbba5af2220d8b1e8baf1533e52017acef1cc /generic/tclStubInit.c
parent926ab55b307cab1b410ff1afef347dc73497b7fa (diff)
downloadtcl-4c681f294b0469fff7d65e9c8718ccf2ff128b2c.zip
tcl-4c681f294b0469fff7d65e9c8718ccf2ff128b2c.tar.gz
tcl-4c681f294b0469fff7d65e9c8718ccf2ff128b2c.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)