properly declare then define the damn export g_pSteamClientGameServer, microsoft's compiler is dubious

This commit is contained in:
otavepto 2024-06-02 09:11:06 +03:00
parent 6d5c13f4f5
commit ad84a60912

View File

@ -161,11 +161,11 @@ STEAMAPI_API HSteamUser SteamAPI_GetHSteamUser()
return CLIENT_HSTEAMUSER; return CLIENT_HSTEAMUSER;
} }
#ifdef STEAMCLIENT_DLL // client // declare "g_pSteamClientGameServer" as an export for API library, then actually define it
ISteamClient *g_pSteamClientGameServer{}; #if !defined(STEAMCLIENT_DLL) // api
#else // api
STEAMAPI_API ISteamClient *g_pSteamClientGameServer; STEAMAPI_API ISteamClient *g_pSteamClientGameServer;
#endif #endif
ISteamClient *g_pSteamClientGameServer{};
static Steam_Client *steamclient_instance{}; static Steam_Client *steamclient_instance{};
Steam_Client *get_steam_client() Steam_Client *get_steam_client()