diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-06-24 20:57:14 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-30 16:03:45 +0300 |
commit | 4f2c846d9644640cd881b7a7a48d1785a52f5c25 (patch) | |
tree | 37d53e6192bf5567f1a2b24baf2ab8a63f5e6c29 | |
parent | d3ed1c9571c24d33fc485fba01bc2d6ed4de18b1 (diff) | |
download | ffmpeg-4f2c846d9644640cd881b7a7a48d1785a52f5c25.tar.gz |
attributes: Add a definition of av_always_inline for MSVC
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavutil/attributes.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |