fix widl unix build.
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 4 Jul 2010 20:20:10 +0000 (20:20 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 4 Jul 2010 20:20:10 +0000 (20:20 +0000)
svn path=/trunk/; revision=47942

reactos/tools/widl/typelib.c
reactos/tools/widl/typelib_struct.h
reactos/tools/widl/widltypes.h
reactos/tools/widl/write_msft.c

index 9c24f15..ce099c8 100644 (file)
@@ -35,8 +35,7 @@
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT
 
-#include "windef.h"
-#include "winbase.h"
+#include <host/typedefs.h>
 
 #include "widl.h"
 #include "utils.h"
index 79b86b9..01c2c64 100644 (file)
@@ -302,7 +302,7 @@ typedef struct {
  *
  */
 
-#include "pshpack1.h"
+#include <host/pshpack1.h>
 
 typedef struct {
 /*00*/ DWORD SLTG_magic;       /* 0x47544c53  == "SLTG" */
@@ -599,7 +599,7 @@ WORD offset from start of block to SAFEARRAY
 WORD typeofarray
 */
 
-#include "poppack.h"
+#include <host/poppack.h>
 
 /*---------------------------END--------------------------------------------*/
 #endif
index 7917508..74f3105 100644 (file)
 #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>
 #include "guiddef.h"
index 1ac34d0..b60c8f3 100644 (file)
 #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"