From bd81939cee78b2befb61d044a02aed39d3fc0d84 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Tue, 28 May 2024 22:17:33 +0300 Subject: [PATCH] solve a spam of warnings on MinGW because of #define __cdecl, I know this is bad but the amount of spam is too much also this file is rarily changed --- sdk/steam/steam_api_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/steam/steam_api_common.h b/sdk/steam/steam_api_common.h index 102e59ac..53da20b4 100644 --- a/sdk/steam/steam_api_common.h +++ b/sdk/steam/steam_api_common.h @@ -80,6 +80,9 @@ typedef char SteamErrMsg[ k_cchMaxSteamErrMsg ]; // function prototype #if defined( POSIX ) +#if defined( __cdecl ) + #undef __cdecl +#endif #define __cdecl #endif extern "C" typedef void (__cdecl *SteamAPIWarningMessageHook_t)(int, const char *);