include: Define _WINSOCKAPI_ in winsock2.h.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-04-27 11:07:20 -05:00 committed by Alexandre Julliard
parent 904c05d3d3
commit 9603fba894
5 changed files with 1 additions and 7 deletions

View File

@ -22,7 +22,6 @@
#include <stdio.h>
#define COBJMACROS
#define WINE_NOWINSOCK
#include <windows.h>
#include "shellapi.h"
#include "shlobj.h"

View File

@ -21,7 +21,6 @@
#include <stdarg.h>
#include <stdio.h>
#define WINE_NOWINSOCK
#include "windef.h"
#include "winbase.h"
#include "wtypes.h"

View File

@ -59,10 +59,7 @@
#include <rpc.h>
#include <shellapi.h>
#include <winperf.h>
#ifndef WINE_NOWINSOCK
#include <winsock.h>
#endif /* WINE_NOWINSOCK */
#ifndef NOCRYPT
#include <wincrypt.h>

View File

@ -102,6 +102,7 @@
#ifndef _WINSOCK2API_
#define _WINSOCK2API_
#define _WINSOCKAPI_
#include <windows.h>

View File

@ -517,8 +517,6 @@ sub output_header($$$) {
print OUT " */\n";
print OUT "\n";
print OUT "#define WINE_NOWINSOCK\n";
print OUT "\n";
foreach my $test (@tests) {
my @includes = $tests->get_section($test_dir, $test, "include");
foreach my $include (@includes) {