]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - qdefs.h
qdefs: Change ALWAYSINLINE -> ALWAYS_INLINE
[xonotic/darkplaces.git] / qdefs.h
diff --git a/qdefs.h b/qdefs.h
index fb942a4543126e6a99c0986e49946967d329d0f5..fa5014649fbfa4129a42ede1b3cff152b5899888 100644 (file)
--- a/qdefs.h
+++ b/qdefs.h
@@ -9,13 +9,13 @@
 #define DP_FUNC_PRINTF(n) __attribute__ ((format (printf, n, n+1)))
 #define DP_FUNC_PURE      __attribute__ ((pure))
 #define DP_FUNC_NORETURN  __attribute__ ((noreturn))
-#define DP_FUNC_ALWAYSINLINE inline __attribute__((always_inline))
+#define DP_FUNC_ALWAYS_INLINE inline __attribute__((always_inline))
 #else
 #define DP_FUNC_PRINTF(n)
 #define DP_FUNC_PURE
 #define DP_FUNC_NORETURN
-# if defined (MSVC)
-# define DP_FUNC_ALWAYSINLINE __forceinline
+# if defined (_MSC_VER)
+# define DP_FUNC_ALWAYS_INLINE __forceinline
 # else
 # define DP_FUNC_ALWAYS_INLINE inline
 # endif
@@ -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