From 4f2c846d9644640cd881b7a7a48d1785a52f5c25 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 24 Jun 2012 20:57:14 +0300 Subject: attributes: Add a definition of av_always_inline for MSVC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavutil/attributes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil') diff --git a/libavutil/attributes.h b/libavutil/attributes.h index ef990a1d4f..c0bac3f309 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 -- cgit v1.2.3