Author: spetreolle Date: Sun Jul 4 20:20:10 2010 New Revision: 47942
URL: http://svn.reactos.org/svn/reactos?rev=47942&view=rev Log: fix widl unix build.
Modified: trunk/reactos/tools/widl/typelib.c trunk/reactos/tools/widl/typelib_struct.h trunk/reactos/tools/widl/widltypes.h trunk/reactos/tools/widl/write_msft.c
Modified: trunk/reactos/tools/widl/typelib.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/typelib.c?rev=47... ============================================================================== --- trunk/reactos/tools/widl/typelib.c [iso-8859-1] (original) +++ trunk/reactos/tools/widl/typelib.c [iso-8859-1] Sun Jul 4 20:20:10 2010 @@ -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/typelib_struct.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/typelib_struct.h... ============================================================================== --- trunk/reactos/tools/widl/typelib_struct.h [iso-8859-1] (original) +++ trunk/reactos/tools/widl/typelib_struct.h [iso-8859-1] Sun Jul 4 20:20:10 2010 @@ -302,7 +302,7 @@ * */
-#include "pshpack1.h" +#include <host/pshpack1.h>
typedef struct { /*00*/ DWORD SLTG_magic; /* 0x47544c53 == "SLTG" */ @@ -599,7 +599,7 @@ WORD typeofarray */
-#include "poppack.h" +#include <host/poppack.h>
/*---------------------------END--------------------------------------------*/ #endif
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 [iso-8859-1] (original) +++ trunk/reactos/tools/widl/widltypes.h [iso-8859-1] Sun Jul 4 20:20:10 2010 @@ -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 <assert.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 [iso-8859-1] (original) +++ trunk/reactos/tools/widl/write_msft.c [iso-8859-1] Sun Jul 4 20:20:10 2010 @@ -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 "widl.h" #include "typelib.h"