From 25043697c3e1e20a1395862b6d5b687d400985e7 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 12 May 2024 05:03:56 +0300 Subject: [PATCH] ensure GNUC is defined for linux builds + warn for unrecognized os --- dll/dll/common_includes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dll/dll/common_includes.h b/dll/dll/common_includes.h index a6b0b0c5..cf47e1dc 100644 --- a/dll/dll/common_includes.h +++ b/dll/dll/common_includes.h @@ -46,6 +46,15 @@ #ifndef NOMINMAX #define NOMINMAX #endif +#elif defined(__LINUX__) + #ifndef GNUC + #define GNUC + #endif + #ifndef NOMINMAX + #define NOMINMAX + #endif +#else + #warn "Unrecognized OS" #endif #define STEAM_API_EXPORTS