-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathJITServerStub.c
23 lines (19 loc) · 944 Bytes
/
JITServerStub.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma warning(push)
// strcpy has inconsistent annotation
#pragma warning(disable: 28252)
#pragma warning(disable: 28253)
// HACK HACK HACK
// MIDL gives compile error if using [system_handle] with stub targetting win8 or below,
// but there is no issue unless the function using [system_handle] is actually called.
// We have runtime check that prevents that function from being used on old OS,
// so change #define here to bypass the error
#if !(0x603 <= _WIN32_WINNT)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x603
#endif
#include "ChakraJIT_s.c"
#pragma warning(pop)