1//
2// Copyright (c) Microsoft. All rights reserved.
3// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4//
5
6//----------------------------------------------------------
7// RuntimeDetails.h - the collection of runtime includes that we need to access.
8//----------------------------------------------------------
9#ifndef _RuntimeDetails
10#define _RuntimeDetails
11
12// Our little collection of enough of the CLR data to get the JIT up and working...
13#define FEATURE_CLRSQM
14
15#if !defined(_TARGET_AMD64_) && !defined(_TARGET_X86_) && !defined(_TARGET_ARM64_) && !defined(_TARGET_ARM_)
16#if defined(_M_X64)
17#define _TARGET_AMD64_ 1
18#elif defined(_M_IX86)
19#define _TARGET_X86_ 1
20#endif
21#endif // _TARGET_* not previously defined
22
23#define __EXCEPTION_RECORD_CLR // trick out clrntexception.h to not include another exception record....
24
25#include <mscoree.h>
26#include <corjit.h>
27#include <utilcode.h>
28
29/// Turn back on direct access to a few OS level things...
30#undef HeapCreate
31#undef HeapAlloc
32#undef HeapFree
33#undef HeapDestroy
34#undef TlsAlloc
35#undef TlsGetValue
36#undef TlsSetValue
37
38// Jit Exports
39typedef ICorJitCompiler*(__stdcall* PgetJit)();
40typedef void(__stdcall* PjitStartup)(ICorJitHost* host);
41typedef void(__stdcall* PsxsJitStartup)(CoreClrCallbacks const& cccallbacks);
42
43#endif
44