Grazvydas Ignotas : winegcc: Define __stdcall and similar attributes to nothing on ARM.
Module: wine Branch: master Commit: f5e28fff8ea36b553cc30fe54887ace873e64e5a URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5e28fff8ea36b553cc30fe548... Author: Grazvydas Ignotas <notasas(a)gmail.com> Date: Sun Mar 2 04:13:54 2014 +0200 winegcc: Define __stdcall and similar attributes to nothing on ARM. --- tools/winegcc/winegcc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 8afe5af..e051d61 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -564,6 +564,16 @@ static void compile(struct options* opts, const char* lang) strarray_add(comp_args, "-D_stdcall=__attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))"); strarray_add(comp_args, "-D_cdecl=__attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))"); } + else if (opts->target_cpu == CPU_ARM || opts->target_cpu == CPU_ARM64) + { + strarray_add(comp_args, "-D__stdcall="); + strarray_add(comp_args, "-D__cdecl="); + strarray_add(comp_args, "-D_stdcall="); + strarray_add(comp_args, "-D_cdecl="); + strarray_add(comp_args, "-D__fastcall="); + strarray_add(comp_args, "-D_fastcall="); + fastcall_done = 1; + } else { strarray_add(comp_args, "-D__stdcall=__attribute__((__stdcall__))");
participants (1)
-
Alexandre Julliard