From b3c7a79225a704eb33594720fb7c15a5146e5fca Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 23 May 2002 02:38:56 +0000 Subject: [PATCH] Include winerror.h if in Winelib mode. --- include/mapicode.h | 4 ++++ include/mapidefs.h | 7 +++++++ include/winbase.h | 5 ++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/include/mapicode.h b/include/mapicode.h index 6a7a75ba602..702eef20cba 100644 --- a/include/mapicode.h +++ b/include/mapicode.h @@ -21,6 +21,10 @@ #ifndef MAPICODE_H #define MAPICODE_H +#ifndef __WINE__ +#include "winerror.h" +#endif + #define MAKE_MAPI_SCODE(sev,fac,code) \ ( (((ULONG)(sev)<<31) | ((ULONG)(fac)<<16) | ((ULONG)(code))) ) diff --git a/include/mapidefs.h b/include/mapidefs.h index 7e378378550..6f8c49b8e42 100644 --- a/include/mapidefs.h +++ b/include/mapidefs.h @@ -20,6 +20,13 @@ #define __WINE_MAPIDEFS_H #include "windef.h" +#ifndef __WINE__ +#include "windows.h" +#include "winerror.h" +#ifndef _OBJBASE_H_ +#include "objbase.h" +#endif +#endif /* Some types */ diff --git a/include/winbase.h b/include/winbase.h index f77a80ae38b..77e84964d2d 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -25,9 +25,8 @@ #include "basetsd.h" #include "windef.h" - -#ifndef RC_INVOKED -#include +#ifndef __WINE__ +#include "winerror.h" #endif #ifdef __cplusplus