From b58eaf320aecacda3cf2900f745c917f49d30ba5 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Fri, 11 Jan 2008 14:46:27 +0000 Subject: [PATCH] Trying to fix the build on Unix hosts by only using host headers in widl svn path=/trunk/; revision=31718 --- reactos/tools/widl/hash.c | 4 +--- reactos/tools/widl/typelib.c | 3 +-- reactos/tools/widl/widltypes.h | 7 +++++++ reactos/tools/widl/write_msft.c | 6 ++---- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/reactos/tools/widl/hash.c b/reactos/tools/widl/hash.c index 46eafeed9fa..da900576713 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 "hash.h" diff --git a/reactos/tools/widl/typelib.c b/reactos/tools/widl/typelib.c index 7130e506d77..b0a482d690d 100644 --- a/reactos/tools/widl/typelib.c +++ b/reactos/tools/widl/typelib.c @@ -35,8 +35,7 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT -#include "windef.h" -#include "winbase.h" +#include #include "widl.h" #include "utils.h" diff --git a/reactos/tools/widl/widltypes.h b/reactos/tools/widl/widltypes.h index 6930f711719..71b403c314a 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 "guiddef.h" #include "wine/rpcfc.h" diff --git a/reactos/tools/widl/write_msft.c b/reactos/tools/widl/write_msft.c index f5ea2f7f27b..462111c2d06 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 "widltypes.h" #include "typelib.h"