Skip to content

Commit 1a56f03

Browse files
committed
xrGame: No DLL APIENTRY on Linux
1 parent e5da009 commit 1a56f03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrGame/xrGame.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ DLL_API void __cdecl xrFactory_Destroy(IFactoryObject* O) { xr_delete(O); }
3333

3434
void CCC_RegisterCommands();
3535

36+
#ifdef WINDOWS
3637
BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved)
3738
{
3839
switch (ul_reason_for_call)
@@ -60,3 +61,4 @@ BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved)
6061
}
6162
return (TRUE);
6263
}
64+
#endif

0 commit comments

Comments
 (0)