Commit 3c3a4740 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

include: Add a couple of missing include directives in windows.h.

Rename a variable to avoid a conflict with the Unknown enumeration value. Define WIN32_LEAN_AND_MEAN to avoid conflicts caused by the SetPort macro.
parent 3fe2d6e5
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define COBJMACROS #define COBJMACROS
#define CONST_VTABLE #define CONST_VTABLE
#define WIN32_LEAN_AND_MEAN
#include <stdarg.h> #include <stdarg.h>
...@@ -1841,13 +1842,13 @@ static const IUnknownVtbl UnknownVtbl = ...@@ -1841,13 +1842,13 @@ static const IUnknownVtbl UnknownVtbl =
Unknown_Release Unknown_Release
}; };
static IUnknown Unknown = { &UnknownVtbl }; static IUnknown unknown = { &UnknownVtbl };
static void test_OleLockRunning(void) static void test_OleLockRunning(void)
{ {
HRESULT hr; HRESULT hr;
hr = OleLockRunning((LPUNKNOWN)&Unknown, TRUE, FALSE); hr = OleLockRunning((LPUNKNOWN)&unknown, TRUE, FALSE);
ok(hr == S_OK, "OleLockRunning failed 0x%08x\n", hr); ok(hr == S_OK, "OleLockRunning failed 0x%08x\n", hr);
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define COBJMACROS #define COBJMACROS
#define CONST_VTABLE #define CONST_VTABLE
#define WIN32_LEAN_AND_MEAN
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include <nb30.h> #include <nb30.h>
#include <rpc.h> #include <rpc.h>
#include <shellapi.h> #include <shellapi.h>
/* #include <winperf.h> */ #include <winperf.h>
#ifndef WINE_NOWINSOCK #ifndef WINE_NOWINSOCK
#include <winsock.h> #include <winsock.h>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
#ifndef NOCRYPT #ifndef NOCRYPT
#include <wincrypt.h> #include <wincrypt.h>
/* #include <winefs.h> */ /* #include <winefs.h> */
/* #include <winscard.h> */ #include <winscard.h>
#endif /* !NOCRYPT */ #endif /* !NOCRYPT */
#ifndef NOGDI #ifndef NOGDI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment