File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
// -------------------------------------------------------------------------------------------------------
2
2
// Copyright (C) Microsoft. All rights reserved.
3
- // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
3
+ // Copyright (c) ChakraCore Project Contributors. All rights reserved.
4
4
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
5
5
// -------------------------------------------------------------------------------------------------------
6
6
#include " stdafx.h"
@@ -24,8 +24,10 @@ Debugger* Debugger::debugger = nullptr;
24
24
25
25
#ifdef _WIN32
26
26
LPCWSTR hostName = _u(" ch.exe" );
27
+ #define EXPORT_VISIBLE
27
28
#else
28
29
LPCWSTR hostName = _u(" ch" );
30
+ #define EXPORT_VISIBLE __attribute__ ((visibility(" default" )))
29
31
#endif
30
32
31
33
JsRuntimeHandle chRuntime = JS_INVALID_RUNTIME_HANDLE;
@@ -42,7 +44,7 @@ UINT32 startEventCount = 1;
42
44
43
45
HRESULT RunBgParseSync (LPCSTR fileContents, UINT lengthBytes, const char * fileName);
44
46
45
- extern " C"
47
+ extern " C" EXPORT_VISIBLE
46
48
HRESULT __stdcall OnChakraCoreLoadedEntry (TestHooks& testHooks)
47
49
{
48
50
return ChakraRTInterface::OnChakraCoreLoaded (testHooks);
You can’t perform that action at this time.
0 commit comments