rasapi32: Update spec file.
[wine/zf.git] / include / basetyps.h
blobb0dd5d77f4079b532fbe3ab742466a546f9e50b2
1 /*
2 * Copyright (C) 1998 Anders Norlander
3 * Copyright (C) 2005 Steven Edwards
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef _BASETYPS_H_
21 #define _BASETYPS_H_
23 #ifdef __cplusplus
24 # define EXTERN_C extern "C"
25 #else
26 # define EXTERN_C extern
27 #endif
29 #define STDMETHODCALLTYPE WINAPI
30 #define STDMETHODVCALLTYPE WINAPIV
31 #define STDAPICALLTYPE WINAPI
32 #define STDAPIVCALLTYPE WINAPIV
33 #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
34 #define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
35 #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
36 #define STDMETHODIMP_(type) type STDMETHODCALLTYPE
37 #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
38 #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
39 #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
40 #define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
42 #undef STDMETHOD
43 #undef STDMETHOD_
44 #undef PURE
45 #undef THIS_
46 #undef THIS
47 #undef DECLARE_INTERFACE
48 #undef DECLARE_INTERFACE_
50 #if defined(__cplusplus) && !defined(CINTERFACE)
52 #ifdef COM_STDMETHOD_CAN_THROW
53 # define COM_DECLSPEC_NOTHROW
54 #else
55 # define COM_DECLSPEC_NOTHROW DECLSPEC_NOTHROW
56 #endif
58 # define interface struct
59 # define STDMETHOD(m) virtual COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE m
60 # define STDMETHOD_(t,m) virtual COM_DECLSPEC_NOTHROW t STDMETHODCALLTYPE m
61 # define PURE =0
62 # define THIS_
63 # define THIS void
64 # define DECLARE_INTERFACE(i) interface i
65 # define DECLARE_INTERFACE_(i,b) interface i : public b
66 #else
67 # define STDMETHOD(m) HRESULT (STDMETHODCALLTYPE *m)
68 # define STDMETHOD_(t,m) t (STDMETHODCALLTYPE *m)
69 # define PURE
70 # define THIS_ INTERFACE *,
71 # define THIS INTERFACE *
72 # ifdef CONST_VTABLE
73 # define DECLARE_INTERFACE(i) \
74 typedef interface i { const struct i##Vtbl *lpVtbl; } i; \
75 typedef struct i##Vtbl i##Vtbl; \
76 struct i##Vtbl
77 # else
78 # define DECLARE_INTERFACE(i) \
79 typedef interface i { struct i##Vtbl *lpVtbl; } i; \
80 typedef struct i##Vtbl i##Vtbl; \
81 struct i##Vtbl
82 # endif
83 # define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
84 #endif
86 #include <guiddef.h>
88 #ifndef _ERROR_STATUS_T_DEFINED
89 typedef unsigned long error_status_t;
90 #define _ERROR_STATUS_T_DEFINED
91 #endif
93 #ifndef _WCHAR_T_DEFINED
94 #ifndef __cplusplus
95 typedef unsigned short wchar_t;
96 #endif
97 #define _WCHAR_T_DEFINED
98 #endif
100 #endif /* _BASETYPS_H_ */