fix inverted condition resulting in a missing import for the api dll

This commit is contained in:
otavepto 2024-05-31 13:19:30 +03:00
parent b6e37d8207
commit 77c2d76bb2
2 changed files with 3 additions and 2 deletions

View File

@ -161,9 +161,9 @@ STEAMAPI_API HSteamUser SteamAPI_GetHSteamUser()
return CLIENT_HSTEAMUSER;
}
#ifndef STEAMCLIENT_DLL // api
#ifdef STEAMCLIENT_DLL // client
ISteamClient *g_pSteamClientGameServer{};
#else // client
#else // api
STEAMAPI_API ISteamClient *g_pSteamClientGameServer{};
#endif

View File

@ -48,6 +48,7 @@
#endif
#endif
// we need this otherwise 'S_API_EXPORT' will be dllimport
#define STEAM_API_EXPORTS
// C/C++ includes