From 77c2d76bb2c84b84590845ba146330cef86a9885 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Fri, 31 May 2024 13:19:30 +0300 Subject: [PATCH] fix inverted condition resulting in a missing import for the api dll --- dll/dll.cpp | 4 ++-- dll/dll/common_includes.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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