From 73386b2c5c2ef384f75ea02de6b92b8133e43665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 9 Aug 2011 22:58:13 +0000 Subject: [PATCH] [WIDL] - Don't include non host headers for host executables I'm sure my dog told me that once. svn path=/trunk/; revision=53159 --- reactos/tools/widl/hash.c | 4 +--- reactos/tools/widl/typelib.c | 4 +--- reactos/tools/widl/widltypes.h | 7 +++++++ reactos/tools/widl/write_msft.c | 6 ++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/reactos/tools/widl/hash.c b/reactos/tools/widl/hash.c index d8a9b701934..a084a7c8854 100644 --- a/reactos/tools/widl/hash.c +++ b/reactos/tools/widl/hash.c @@ -21,9 +21,7 @@ #include #include -#include "windef.h" -#include "winbase.h" -#include "winnls.h" +#include #include "widltypes.h" #include "hash.h" diff --git a/reactos/tools/widl/typelib.c b/reactos/tools/widl/typelib.c index e3fc0b97c41..a63af091437 100644 --- a/reactos/tools/widl/typelib.c +++ b/reactos/tools/widl/typelib.c @@ -35,9 +35,7 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT -#include "windef.h" -#include "winbase.h" - +#include #include "widl.h" #include "utils.h" #include "parser.h" diff --git a/reactos/tools/widl/widltypes.h b/reactos/tools/widl/widltypes.h index d1066bd23e8..0ef07bec8a6 100644 --- a/reactos/tools/widl/widltypes.h +++ b/reactos/tools/widl/widltypes.h @@ -21,6 +21,13 @@ #ifndef __WIDL_WIDLTYPES_H #define __WIDL_WIDLTYPES_H +#define S_OK 0 +#define S_FALSE 1 +#define E_OUTOFMEMORY ((HRESULT)0x8007000EL) +#define TYPE_E_IOERROR ((HRESULT)0x80028CA2L) + +#define max(a, b) ((a) > (b) ? a : b) + #include #include #include "guiddef.h" diff --git a/reactos/tools/widl/write_msft.c b/reactos/tools/widl/write_msft.c index 416f81d2f73..5e5020dd29b 100644 --- a/reactos/tools/widl/write_msft.c +++ b/reactos/tools/widl/write_msft.c @@ -40,10 +40,8 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT -#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winnls.h" +#include +#include #include "widl.h" #include "typelib.h"