mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-03-28 14:56:24 +01:00
properly declare then define the damn export g_pSteamClientGameServer
, microsoft's compiler is dubious
This commit is contained in:
parent
6d5c13f4f5
commit
ad84a60912
1 changed files with 3 additions and 3 deletions
|
@ -161,11 +161,11 @@ STEAMAPI_API HSteamUser SteamAPI_GetHSteamUser()
|
|||
return CLIENT_HSTEAMUSER;
|
||||
}
|
||||
|
||||
#ifdef STEAMCLIENT_DLL // client
|
||||
ISteamClient *g_pSteamClientGameServer{};
|
||||
#else // api
|
||||
// declare "g_pSteamClientGameServer" as an export for API library, then actually define it
|
||||
#if !defined(STEAMCLIENT_DLL) // api
|
||||
STEAMAPI_API ISteamClient *g_pSteamClientGameServer;
|
||||
#endif
|
||||
ISteamClient *g_pSteamClientGameServer{};
|
||||
|
||||
static Steam_Client *steamclient_instance{};
|
||||
Steam_Client *get_steam_client()
|
||||
|
|
Loading…
Add table
Reference in a new issue