From: Cloudwalk Date: Fri, 17 Sep 2021 14:42:40 +0000 (-0400) Subject: qdefs: Check _MSC_VER instead of incorrect MSVC X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b99206803156d4bdfe4ce0c83a2db8f9486e09d4;p=xonotic%2Fdarkplaces.git qdefs: Check _MSC_VER instead of incorrect MSVC --- diff --git a/qdefs.h b/qdefs.h index fb942a45..5eed8b6f 100644 --- a/qdefs.h +++ b/qdefs.h @@ -14,7 +14,7 @@ #define DP_FUNC_PRINTF(n) #define DP_FUNC_PURE #define DP_FUNC_NORETURN -# if defined (MSVC) +# if defined (_MSC_VER) # define DP_FUNC_ALWAYSINLINE __forceinline # else # define DP_FUNC_ALWAYS_INLINE inline @@ -23,7 +23,7 @@ #ifdef DP_GCC_COMPATIBLE #define Q_typeof(var) typeof(var) -#elif defined (MSVC) +#elif defined (_MSC_VER) #define Q_typeof(var) decltype(var) #endif