]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
qdefs: Check _MSC_VER instead of incorrect MSVC
authorCloudwalk <cloudwalk@icculus.org>
Fri, 17 Sep 2021 14:42:40 +0000 (10:42 -0400)
committerCloudwalk <cloudwalk@icculus.org>
Fri, 17 Sep 2021 14:42:40 +0000 (10:42 -0400)
qdefs.h

diff --git a/qdefs.h b/qdefs.h
index fb942a4543126e6a99c0986e49946967d329d0f5..5eed8b6f69a633cd33691ea23a5a2caca972ac46 100644 (file)
--- 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