summaryrefslogtreecommitdiff
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-24 20:57:14 +0300
committerMartin Storsjö <martin@martin.st>2012-06-30 16:03:45 +0300
commit4f2c846d9644640cd881b7a7a48d1785a52f5c25 (patch)
tree37d53e6192bf5567f1a2b24baf2ab8a63f5e6c29 /libavutil/attributes.h
parentd3ed1c9571c24d33fc485fba01bc2d6ed4de18b1 (diff)
attributes: Add a definition of av_always_inline for MSVC
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h2
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