Added missing #include <sys/types.h>.
[wine/wine-gecko.git] / include / objbase.h
blob4c46c276537bb1e045b1ab7a20825b8af35c07a5
1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
4 #define _OBJBASE_H_
6 #include "wine/obj_base.h"
8 /* the following depend only on obj_base.h */
9 #include "wine/obj_misc.h"
10 #include "wine/obj_channel.h"
11 #include "wine/obj_clientserver.h"
12 #include "wine/obj_storage.h"
14 /* the following depend on obj_storage.h */
15 #include "wine/obj_marshal.h"
16 #include "wine/obj_moniker.h"
17 #include "wine/obj_propertystorage.h"
19 /* the following depend on obj_moniker.h */
20 #include "wine/obj_dataobject.h"
22 #include "wine/obj_dragdrop.h"
24 #ifndef RC_INVOKED
25 /* For compatibility only, at least for now */
26 #include <stdlib.h>
27 #endif
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid);
35 #ifdef __cplusplus
37 #endif
40 /* These macros are msdev's way of defining COM objects. They are provided
41 * here for use by winelib users.
44 #ifdef __cplusplus
45 #define EXTERN_C extern "C"
46 #else
47 #define EXTERN_C extern
48 #endif
50 #define STDMETHODCALLTYPE __stdcall
51 #define STDMETHODVCALLTYPE __cdecl
52 #define STDAPICALLTYPE __stdcall
53 #define STDAPIVCALLTYPE __cdecl
55 #define FARSTRUCT
56 #define HUGEP
58 #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
59 #define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
61 #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
62 #define STDMETHODIMP_(type) type STDMETHODCALLTYPE
64 #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
65 #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
67 #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
68 #define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
70 #define WINOLEAPI STDAPI
71 #define WINOLEAPI_(type) STDAPI_(type)
73 #if defined(__cplusplus) && !defined(CINTERFACE)
74 #define interface struct
75 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
76 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
77 #define PURE = 0
78 #define THIS_
79 #define THIS void
80 #define DECLARE_INTERFACE(iface) interface iface
81 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
83 #define BEGIN_INTERFACE
84 #define END_INTERFACE
86 #else
88 #define interface struct
89 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
90 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
91 #define PURE
92 #define THIS_ INTERFACE FAR* This,
93 #define THIS INTERFACE FAR* This
95 #ifdef CONST_VTABLE
96 #undef CONST_VTBL
97 #define CONST_VTBL const
98 #define DECLARE_INTERFACE(iface) \
99 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
100 typedef const struct iface##Vtbl iface##Vtbl; \
101 const struct iface##Vtbl
102 #else
103 #undef CONST_VTBL
104 #define CONST_VTBL
105 #define DECLARE_INTERFACE(iface) \
106 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
107 typedef struct iface##Vtbl iface##Vtbl; \
108 struct iface##Vtbl
109 #endif
110 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
112 #define BEGIN_INTERFACE
113 #define END_INTERFACE
115 #endif
117 #endif /* __WINE_OBJBASE_H */