[PATCH 2/4] include: Fix standard call types for ARM
Alexandre Julliard
julliard at winehq.org
Sat Apr 6 14:03:32 CDT 2019
André Hentschel <nerv at dawncrow.de> writes:
> @@ -26,10 +26,18 @@
> # define EXTERN_C extern
> #endif
>
> +#if defined(__arm__) && defined (__GNUC__)
> +#define STDMETHODCALLTYPE __attribute__((pcs("aapcs-vfp")))
> +#define STDMETHODVCALLTYPE __attribute__((pcs("aapcs")))
> +#define STDAPICALLTYPE __attribute__((pcs("aapcs-vfp")))
> +#define STDAPIVCALLTYPE __attribute__((pcs("aapcs")))
> +#else
> #define STDMETHODCALLTYPE __stdcall
> #define STDMETHODVCALLTYPE __cdecl
> #define STDAPICALLTYPE __stdcall
> #define STDAPIVCALLTYPE __cdecl
> +#endif
There shouldn't be any reason to add more ifdefs, just use the existing
definitions. For varargs functions you want WINAPIV.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list