summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-04-16 09:28:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-04-16 09:28:54 (GMT)
commit551367d26fffabaf2176de988521a98184f49ad0 (patch)
tree340c9f6f3cef2dd06af7d89c9f1e5567d9ffd05b /win/tclWinPort.h
parent630c5dd08faa0ca5deac0606be3ac1b36b82a6d3 (diff)
downloadtcl-551367d26fffabaf2176de988521a98184f49ad0.zip
tcl-551367d26fffabaf2176de988521a98184f49ad0.tar.gz
tcl-551367d26fffabaf2176de988521a98184f49ad0.tar.bz2
Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details.
Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index ec9e867..ea6d8f8 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -448,15 +448,6 @@ typedef DWORD_PTR * PDWORD_PTR;
#define TclpSysRealloc(ptr, size) ((void*)HeapReAlloc(GetProcessHeap(), \
(DWORD)0, (LPVOID)ptr, (DWORD)size))
-/*
- * The following defines map from standard socket names to our internal
- * wrappers that redirect through the winSock function table (see the
- * file tclWinSock.c).
- */
-
-#define getservbyname TclWinGetServByName
-#define getsockopt TclWinGetSockOpt
-#define setsockopt TclWinSetSockOpt
/* This type is not defined in the Windows headers */
#define socklen_t int