Commit 12ead674 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

msvcp: Use __ASM_USE_THISCALL_WRAPPER macro.

parent 4e44edd2
...@@ -263,7 +263,7 @@ static void init_ ## type ## _cxx(char *base) \ ...@@ -263,7 +263,7 @@ static void init_ ## type ## _cxx(char *base) \
#define DEFINE_CXX_DATA4(name, cl1, cl2, cl3, cl4, dtor) \ #define DEFINE_CXX_DATA4(name, cl1, cl2, cl3, cl4, dtor) \
DEFINE_CXX_DATA(name, 4, cl1, cl2, cl3, cl4, dtor) DEFINE_CXX_DATA(name, 4, cl1, cl2, cl3, cl4, dtor)
#if defined(__i386__) && !defined(__MINGW32__) #ifdef __ASM_USE_THISCALL_WRAPPER
#define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret (WINAPI*)type)&vtbl_wrapper_##off)args #define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret (WINAPI*)type)&vtbl_wrapper_##off)args
......
...@@ -969,7 +969,7 @@ void __cdecl __ExceptionPtrCreate(exception_ptr *ep) ...@@ -969,7 +969,7 @@ void __cdecl __ExceptionPtrCreate(exception_ptr *ep)
ep->ref = NULL; ep->ref = NULL;
} }
#if defined(__i386__) && !defined(__MINGW32__) #ifdef __ASM_USE_THISCALL_WRAPPER
extern void call_dtor(const cxx_exception_type *type, void *func, void *object); extern void call_dtor(const cxx_exception_type *type, void *func, void *object);
__ASM_GLOBAL_FUNC( call_dtor, __ASM_GLOBAL_FUNC( call_dtor,
......
...@@ -711,7 +711,7 @@ unsigned int __cdecl _Random_device(void) ...@@ -711,7 +711,7 @@ unsigned int __cdecl _Random_device(void)
#endif #endif
#if _MSVCP_VER >= 110 #if _MSVCP_VER >= 110
#if defined(__i386__) && !defined(__MINGW32__) #ifdef __ASM_USE_THISCALL_WRAPPER
extern void *call_thiscall_func; extern void *call_thiscall_func;
__ASM_GLOBAL_FUNC(call_thiscall_func, __ASM_GLOBAL_FUNC(call_thiscall_func,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(msvcp); WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
#if defined(__i386__) && !defined(__MINGW32__) #ifdef __ASM_USE_THISCALL_WRAPPER
#define DEFINE_VTBL_WRAPPER(off) \ #define DEFINE_VTBL_WRAPPER(off) \
__ASM_GLOBAL_FUNC(vtbl_wrapper_ ## off, \ __ASM_GLOBAL_FUNC(vtbl_wrapper_ ## off, \
......
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