[FFmpeg-cvslog] attributes: Add a definition of av_always_inline for MSVC

Ronald S. Bultje git at videolan.org
Sat Jun 30 22:47:42 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 20:57:14 2012 +0300| [4f2c846d9644640cd881b7a7a48d1785a52f5c25] | committer: Martin Storsjö

attributes: Add a definition of av_always_inline for MSVC

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f2c846d9644640cd881b7a7a48d1785a52f5c25
---

 libavutil/attributes.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index ef990a1..c0bac3f 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -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



More information about the ffmpeg-cvslog mailing list