Commit 42b3ee74 authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

Moved some of the STDMETHOD/STDAPI to winnt.h.

Moved the EXTERN_C macro to winnt.h. Added a '#ifndef __WINE__' around the remaining macros.
parent 174664a2
......@@ -36,37 +36,13 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
}
#endif
/* These macros are msdev's way of defining COM objects. They are provided
* here for use by winelib users.
#ifndef __WINE__
/* These macros are msdev's way of defining COM objects.
* They are provided here for use by Winelib developpers.
*/
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
#define STDMETHODCALLTYPE __stdcall
#define STDMETHODVCALLTYPE __cdecl
#define STDAPICALLTYPE __stdcall
#define STDAPIVCALLTYPE __cdecl
#define FARSTRUCT
#define HUGEP
#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
#define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
#define STDMETHODIMP_(type) type STDMETHODCALLTYPE
#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
#define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
#define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
#define WINOLEAPI STDAPI
#define WINOLEAPI_(type) STDAPI_(type)
......@@ -112,6 +88,8 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
#define BEGIN_INTERFACE
#define END_INTERFACE
#endif
#endif /* __cplusplus && !CINTERFACE */
#endif /* __WINE__ */
#endif /* __WINE_OBJBASE_H */
......@@ -196,6 +196,30 @@ typedef double DATE;
/**** winnt.h proper *****/
/* Microsoft's macros for declaring functions */
#ifdef __cplusplus
# define EXTERN_C extern "C"
#else
# define EXTERN_C extern
#endif
#ifndef __WINE__
#define STDMETHODCALLTYPE __stdcall
#define STDMETHODVCALLTYPE __cdecl
#define STDAPICALLTYPE __stdcall
#define STDAPIVCALLTYPE __cdecl
#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
#define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
#define STDMETHODIMP_(type) type STDMETHODCALLTYPE
#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
#define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
#define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
#endif
/* Define the basic types */
#ifndef VOID
#define VOID void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment