We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5553cd9 commit 1cb4708Copy full SHA for 1cb4708
1 file changed
src/win_delay_load_hook.cc
@@ -7,10 +7,10 @@
7
* This allows compiled addons to work when the host executable is renamed.
8
*/
9
10
-#pragma unmanaged
11
-
12
#ifdef _MSC_VER
13
+#pragma managed(push, off)
+
14
#ifndef WIN32_LEAN_AND_MEAN
15
#define WIN32_LEAN_AND_MEAN
16
#endif
@@ -34,4 +34,6 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
34
35
decltype(__pfnDliNotifyHook2) __pfnDliNotifyHook2 = load_exe_hook;
36
37
+#pragma managed(pop)
38
39
0 commit comments