mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 18:39:32 +08:00
properly declare then define the damn export g_pSteamClientGameServer
, microsoft's compiler is dubious
This commit is contained in:
parent
6d5c13f4f5
commit
ad84a60912
@ -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…
x
Reference in New Issue
Block a user