Author: cfinck Date: Fri Jan 11 17:46:27 2008 New Revision: 31718
URL: http://svn.reactos.org/svn/reactos?rev=31718&view=rev Log: Trying to fix the build on Unix hosts by only using host headers in widl
Modified: trunk/reactos/tools/widl/hash.c trunk/reactos/tools/widl/typelib.c trunk/reactos/tools/widl/widltypes.h trunk/reactos/tools/widl/write_msft.c
Modified: trunk/reactos/tools/widl/hash.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/hash.c?rev=31718... ============================================================================== --- trunk/reactos/tools/widl/hash.c (original) +++ trunk/reactos/tools/widl/hash.c Fri Jan 11 17:46:27 2008 @@ -21,9 +21,7 @@ #include <stdio.h> #include <stdarg.h>
-#include "windef.h" -#include "winbase.h" -#include "winnls.h" +#include <host/nls.h>
#include "hash.h"
Modified: trunk/reactos/tools/widl/typelib.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/typelib.c?rev=31... ============================================================================== --- trunk/reactos/tools/widl/typelib.c (original) +++ trunk/reactos/tools/widl/typelib.c Fri Jan 11 17:46:27 2008 @@ -35,8 +35,7 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT
-#include "windef.h" -#include "winbase.h" +#include <host/typedefs.h>
#include "widl.h" #include "utils.h"
Modified: trunk/reactos/tools/widl/widltypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/widltypes.h?rev=... ============================================================================== --- trunk/reactos/tools/widl/widltypes.h (original) +++ trunk/reactos/tools/widl/widltypes.h Fri Jan 11 17:46:27 2008 @@ -20,6 +20,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 <stdarg.h> #include "guiddef.h"
Modified: trunk/reactos/tools/widl/write_msft.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/write_msft.c?rev... ============================================================================== --- trunk/reactos/tools/widl/write_msft.c (original) +++ trunk/reactos/tools/widl/write_msft.c Fri Jan 11 17:46:27 2008 @@ -40,10 +40,8 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT
-#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winnls.h" +#include <host/typedefs.h> +#include <host/nls.h>
#include "widltypes.h" #include "typelib.h"