diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-23 20:18:52 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-23 20:18:52 (GMT) |
| commit | 546d87944aa96f7a7b0e8e537f0ba117141ff35c (patch) | |
| tree | 196b0dfa46b93993128a3287ef14906e2fb8b845 /generic/tclStubInit.c | |
| parent | a81f168cfe5c405b03afb321fe23b852c32c547b (diff) | |
| parent | 7a3075e604cf374708b641c596913c943cbb5cfa (diff) | |
| download | tcl-546d87944aa96f7a7b0e8e537f0ba117141ff35c.zip tcl-546d87944aa96f7a7b0e8e537f0ba117141ff35c.tar.gz tcl-546d87944aa96f7a7b0e8e537f0ba117141ff35c.tar.bz2 | |
small wrapper for TclWinNToHs, for change in calling convention
Diffstat (limited to 'generic/tclStubInit.c')
| -rw-r--r-- | generic/tclStubInit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index 7eb1788..4f562a7 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -53,7 +53,13 @@ static int TclSockMinimumBuffersOld(int sock, int size) } #endif -#define TclWinNToHS ntohs + +#if defined(_WIN32) || defined(__CYGWIN__) +#define TclWinNToHS winNToHS +static unsigned short TclWinNToHS(unsigned short ns) { + return ntohs(ns); +} +#endif #ifdef __WIN32__ # define TclUnixWaitForFile 0 |
