Skip to content

Commit f51addd

Browse files
committed
Move extern C to global scope
1 parent 670cf6b commit f51addd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dllmain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#pragma comment(lib, "Shlwapi.lib")
77

8+
extern "C" void _init_fn(void);
9+
810
// Type definitions (not provided by SDK headers in this project)
911
typedef unsigned int uint32;
1012
typedef unsigned long long uint64;
@@ -146,7 +148,6 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
146148
ParseConfig();
147149

148150
// Initialize trampoline function pointers from the real DLL
149-
extern "C" void _init_fn(void);
150151
_init_fn();
151152

152153
// SteamStub patching goes before any Steam API usage

0 commit comments

Comments
 (0)