diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-20 08:59:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-20 08:59:36 (GMT) |
commit | 45f8aafc9099cb3ee0ae65d68f59d57ba5cec4d9 (patch) | |
tree | 807dbba5af2220d8b1e8baf1533e52017acef1cc /generic/tclStubInit.c | |
parent | 53c3622234fd4f6f0942c48e474c2ca166c3c6bd (diff) | |
download | tcl-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.c | 7 |
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) |