ifeq ($(CHANNEL),yes)
OBJ += $(OUTDIR)/job.o $(OUTDIR)/channel.o
-LIB += -lwsock32 -lws2_32
+LIB += -lws2_32
endif
ifeq ($(DIRECTX),yes)
NBDEBUG_INCL = nbdebug.h
NBDEBUG_SRC = nbdebug.c
! endif
-NETBEANS_LIB = WSock32.lib
! endif
# DirectWrite (DirectX)
CHANNEL_OBJ = $(OBJDIR)/job.obj $(OBJDIR)/channel.obj
CHANNEL_DEFS = -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP
-NETBEANS_LIB = WSock32.lib Ws2_32.lib
+NETBEANS_LIB = Ws2_32.lib
!endif
# need advapi32.lib for GetUserName()
* Implements communication through a socket or any file handle.
*/
-#ifdef WIN32
-// Must include winsock2.h before windows.h since it conflicts with winsock.h
-// (included in windows.h).
-# include <winsock2.h>
-# include <ws2tcpip.h>
-#endif
-
#include "vim.h"
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
# define _USE_32BIT_TIME_T
#endif
-/*
- * Prevent including winsock.h. perl.h tries to detect whether winsock.h is
- * already included before including winsock2.h, because winsock2.h isn't
- * compatible with winsock.h. However the detection doesn't work with some
- * versions of MinGW. If WIN32_LEAN_AND_MEAN is defined, windows.h will not
- * include winsock.h.
- */
-#ifdef WIN32
-# define WIN32_LEAN_AND_MEAN
-#endif
-
#include "vim.h"
#ifdef _MSC_VER
# define COBJMACROS // For OLE: Enable "friendlier" access to objects
#endif
#ifndef PROTO
+// Must include winsock2.h before windows.h since it conflicts with winsock.h
+// (included in windows.h).
+# include <winsock2.h>
+# include <ws2tcpip.h>
# include <windows.h>
// Weird: rpcndr.h defines "small" to "char", which causes trouble
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2052,
/**/
2051,
/**/