Author: tkreuzer Date: Mon Nov 8 13:29:01 2010 New Revision: 49528
URL: http://svn.reactos.org/svn/reactos?rev=49528&view=rev Log: [SPEC2PDEF] Improve the conditionals: only gcc and x86 builds should get stdcall/fastcall decorations, the others shouldn't
Modified: branches/cmake-bringup/tools/spec2pdef/spec2pdef.c
Modified: branches/cmake-bringup/tools/spec2pdef/spec2pdef.c URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2pdef/sp... ============================================================================== --- branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] (original) +++ branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] Mon Nov 8 13:29:01 2010 @@ -273,14 +273,14 @@ "LIBRARY %s\n\n" "EXPORTS\n" "#define FOOL(x) x\n" - "#ifdef _MSC_VER\n" + "#if defined(__GNUC__) && defined(_X86_)\n" + "#define _NAME_STDCALL(name, stackbytes) FOOL(name)@stackbytes\n" + "#define _NAME_FASTCALL(name, stackbytes) FOOL(@)FOOL(name)@stackbytes\n" + "#define _NAME_CDECL(name, stackbytes) FOOL(name)\n" + "#else\n" "#define _NAME_STDCALL(name, stackbytes) name\n" "#define _NAME_FASTCALL(name, stackbytes) name\n" "#define _NAME_CDECL(name, stackbytes) name\n" - "#else\n" - "#define _NAME_STDCALL(name, stackbytes) FOOL(name)@stackbytes\n" - "#define _NAME_FASTCALL(name, stackbytes) FOOL(@)FOOL(name)@stackbytes\n" - "#define _NAME_CDECL(name, stackbytes) FOOL(name)\n" "#endif\n" "#define _NAME_EXTERN(name, stackbytes) name\n" "#define _NAME(name, cc, stackbytes) _NAME_##cc(name, stackbytes)\n",