mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-13 02:43:54 +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;
|
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user