include: Add a define to enable fastcall wrappers, similar to the thiscall one.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
84bfdccf6d
commit
d5a7d08f63
|
@ -34,7 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
|
|||
|
||||
#ifdef __i386__
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef __ASM_USE_FASTCALL_WRAPPER
|
||||
|
||||
extern void * WINAPI wrap_fastcall_func1( void *func, const void *a );
|
||||
__ASM_STDCALL_FUNC( wrap_fastcall_func1, 8,
|
||||
|
@ -53,12 +53,12 @@ __ASM_STDCALL_FUNC( wrap_fastcall_func2, 12,
|
|||
#define call_fastcall_func1(func,a) wrap_fastcall_func1(func,a)
|
||||
#define call_fastcall_func2(func,a,b) wrap_fastcall_func2(func,a,b)
|
||||
|
||||
#else /* _WIN32 */
|
||||
#else /* __ASM_USE_FASTCALL_WRAPPER */
|
||||
|
||||
#define call_fastcall_func1(func,a) func(a)
|
||||
#define call_fastcall_func2(func,a,b) func(a,b)
|
||||
|
||||
#endif /* _WIN32 */
|
||||
#endif /* __ASM_USE_FASTCALL_WRAPPER */
|
||||
|
||||
DEFINE_FASTCALL1_WRAPPER( ExAcquireFastMutex )
|
||||
void FASTCALL ExAcquireFastMutex( FAST_MUTEX *mutex )
|
||||
|
|
|
@ -40,7 +40,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(hid);
|
|||
DEFINE_DEVPROPKEY(DEVPROPKEY_HID_HANDLE, 0xbc62e415, 0xf4fe, 0x405c, 0x8e, 0xda, 0x63, 0x6f, 0xb5, 0x9f, 0x08, 0x98, 2);
|
||||
DEFINE_GUID(GUID_DEVINTERFACE_WINEXINPUT, 0x6c53d5fd, 0x6480, 0x440f, 0xb6, 0x18, 0x47, 0x67, 0x50, 0xc5, 0xe1, 0xa6);
|
||||
|
||||
#if defined(__i386__) && !defined(_WIN32)
|
||||
#ifdef __ASM_USE_FASTCALL_WRAPPER
|
||||
|
||||
extern void * WINAPI wrap_fastcall_func1( void *func, const void *a );
|
||||
__ASM_STDCALL_FUNC( wrap_fastcall_func1, 8,
|
||||
|
|
|
@ -343,7 +343,7 @@ static void bus_unlink_hid_device(DEVICE_OBJECT *device)
|
|||
RtlLeaveCriticalSection(&device_list_cs);
|
||||
}
|
||||
|
||||
#if defined(__i386__) && !defined(_WIN32)
|
||||
#ifdef __ASM_USE_FASTCALL_WRAPPER
|
||||
extern void * WINAPI wrap_fastcall_func1(void *func, const void *a);
|
||||
__ASM_STDCALL_FUNC(wrap_fastcall_func1, 8,
|
||||
"popl %ecx\n\t"
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(wineusb);
|
||||
|
||||
#if defined(__i386__) && !defined(_WIN32)
|
||||
#ifdef __ASM_USE_FASTCALL_WRAPPER
|
||||
|
||||
extern void * WINAPI wrap_fastcall_func1( void *func, const void *a );
|
||||
__ASM_STDCALL_FUNC( wrap_fastcall_func1, 8,
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(winexinput);
|
||||
|
||||
#if defined(__i386__) && !defined(_WIN32)
|
||||
#ifdef __ASM_USE_FASTCALL_WRAPPER
|
||||
extern void *WINAPI wrap_fastcall_func1(void *func, const void *a);
|
||||
__ASM_STDCALL_FUNC(wrap_fastcall_func1, 8,
|
||||
"popl %ecx\n\t"
|
||||
|
|
|
@ -119,6 +119,7 @@
|
|||
|
||||
#if defined(__i386__) && !defined(_WIN32)
|
||||
|
||||
# define __ASM_USE_FASTCALL_WRAPPER
|
||||
# define DEFINE_FASTCALL1_WRAPPER(func) \
|
||||
__ASM_FASTCALL_FUNC( func, 4, \
|
||||
"popl %eax\n\t" \
|
||||
|
|
Loading…
Reference in New Issue