Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dllexport.h « jitinterface « Native « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eac5f387f882e3043bb23d39fd7eafac9d959eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.


// ***
// Define default C export attributes
// ***
#ifdef _WIN32
#define DLL_EXPORT         extern "C" __declspec(dllexport)
#else
#define DLL_EXPORT         extern "C" __attribute((visibility("default")))
#endif // _WIN32


// ***
// 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
#else
#define DEFAULT_CALL_CONV  __stdcall
#endif

#endif // _X86_


#define STDMETHODCALLTYPE  DEFAULT_CALL_CONV