Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Get jitwrapper building on x86 #7773

Merged
merged 3 commits into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions src/Native/jitinterface/dllexport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion src/Native/jitinterface/jitwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down