attributes: Add a definition of av_always_inline for MSVC
[ffmpeg.git] / libavutil / attributes.h
index ef990a1..c0bac3f 100644 (file)
@@ -35,6 +35,8 @@
 #ifndef av_always_inline
 #if AV_GCC_VERSION_AT_LEAST(3,1)
 #    define av_always_inline __attribute__((always_inline)) inline
+#elif defined(_MSC_VER)
+#    define av_always_inline __forceinline
 #else
 #    define av_always_inline inline
 #endif