Fix the calling conventions properly this time (I hope)
This was SVN commit r7542.
This commit is contained in:
parent
f728050b3f
commit
202b13d557
@ -519,9 +519,12 @@ static const char* listCppTargets(const char* name)
|
||||
strcpy(input_dir, path_translate(path_getdir(name) , NULL));
|
||||
strcat(input_dir, "/");
|
||||
|
||||
opts = "";
|
||||
if (!os_is("windows") && !os_is("macosx"))
|
||||
opts = "-dDONT_USE_UNDERLINE=1 -dOS_LINUX=1 ";
|
||||
if (os_is("windows"))
|
||||
opts = "";
|
||||
else if (os_is("macosx"))
|
||||
opts = "-dOS_UNIX=1 ";
|
||||
else
|
||||
opts = "-dDONT_USE_UNDERLINE=1 -dOS_UNIX=1 ";
|
||||
|
||||
strcat(g_buffer, "nasm "); strcat(g_buffer, opts);
|
||||
strcat(g_buffer, " -i"); strcat(g_buffer,input_dir );
|
||||
|
@ -1,12 +1,12 @@
|
||||
%ifdef OS_WIN
|
||||
%define arg0 rcx
|
||||
%define arg1 rdx
|
||||
%define arg2 r8
|
||||
%define arg3 r9
|
||||
%else
|
||||
%ifdef OS_UNIX
|
||||
%define arg0 rdi
|
||||
%define arg1 rsi
|
||||
%define arg2 rdx
|
||||
%define arg3 rcx
|
||||
%else
|
||||
%define arg0 rcx
|
||||
%define arg1 rdx
|
||||
%define arg2 r8
|
||||
%define arg3 r9
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user