attributes: Add a definition of av_always_inline for MSVC
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 24 Jun 2012 17:57:14 +0000 (20:57 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 30 Jun 2012 13:03:45 +0000 (16:03 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
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