diff --git a/dll/dll.cpp b/dll/dll.cpp index 3469ac69..4d02a273 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -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 diff --git a/dll/dll/common_includes.h b/dll/dll/common_includes.h index 9dd2f027..ced60026 100644 --- a/dll/dll/common_includes.h +++ b/dll/dll/common_includes.h @@ -48,6 +48,7 @@ #endif #endif +// we need this otherwise 'S_API_EXPORT' will be dllimport #define STEAM_API_EXPORTS // C/C++ includes