Declare and use 'PLATFORM_INTERFACE' instead

This commit is contained in:
Kawe Mazidjatari 2023-08-21 20:40:35 +02:00
parent a44b38eb15
commit 4c7d0325fa
2 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,7 @@ const char* CFactory::GetFactoryFullName(const string& svFactoryName) const
//---------------------------------------------------------------------------------
// Purpose: expose factory system to other dlls
//---------------------------------------------------------------------------------
extern "C" __declspec(dllexport) void* GetFactorySystem()
CFactory* GetFactorySystem()
{
return g_pFactory;
}

View File

@ -61,6 +61,8 @@ private:
};
extern CFactory* g_pFactory;
PLATFORM_INTERFACE CFactory* GetFactorySystem();
/* ==== s_pInterfaceRegs ==================================================================================================================================================== */
inline CMemory s_pInterfacesRegs;