diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-20 09:12:39 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-20 09:12:39 (GMT) |
| commit | 0d03bb6f0f128ef84f791fc03c298999aaec64ce (patch) | |
| tree | ad4f6154d11316178dc93d74e7733cbb09886a7f /generic/tclStubInit.c | |
| parent | 13a47245936287f06507bad65264690c1fc77064 (diff) | |
| parent | cf9d0edf00d841115d8d92b7fe58c0e92a908a08 (diff) | |
| download | tcl-0d03bb6f0f128ef84f791fc03c298999aaec64ce.zip tcl-0d03bb6f0f128ef84f791fc03c298999aaec64ce.tar.gz tcl-0d03bb6f0f128ef84f791fc03c298999aaec64ce.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 | 8 |
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) |
