diff --git a/src/Native/jitinterface/dllexport.h b/src/Native/jitinterface/dllexport.h index eac5f387f88..5cc1b035056 100644 --- a/src/Native/jitinterface/dllexport.h +++ b/src/Native/jitinterface/dllexport.h @@ -16,25 +16,8 @@ // *** // Define default call conventions // *** -#ifndef _X86_ - -#define DEFAULT_CALL_CONV -#define __cdecl -#define __stdcall - -#else // _X86_ - -#ifndef __stdcall -#define __stdcall __attribute__((stdcall)) -#endif - -#ifdef PLATFORM_UNIX -#define DEFAULT_CALL_CONV +#if defined(_X86_) && !defined(PLATFORM_UNIX) +#define STDMETHODCALLTYPE __stdcall #else -#define DEFAULT_CALL_CONV __stdcall -#endif - -#endif // _X86_ - - -#define STDMETHODCALLTYPE DEFAULT_CALL_CONV +#define STDMETHODCALLTYPE +#endif // defined(_X86_) && !defined(PLATFORM_UNIX) diff --git a/src/Native/jitinterface/jitwrapper.cpp b/src/Native/jitinterface/jitwrapper.cpp index 685937bca6c..4d791ccd263 100644 --- a/src/Native/jitinterface/jitwrapper.cpp +++ b/src/Native/jitinterface/jitwrapper.cpp @@ -37,7 +37,7 @@ static const GUID JITEEVersionIdentifier = { /* d609bed1-7831-49fc-bd49-b6f054dd class Jit { public: - virtual int __stdcall compileMethod( + virtual int STDMETHODCALLTYPE compileMethod( void* compHnd, void* methodInfo, unsigned flags,