summaryrefslogtreecommitdiff
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
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 850a73ff7a..9f476c9ae3 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -42,6 +42,8 @@
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_noinline __attribute__((noinline))
+#elif defined(_MSC_VER)
+# define av_noinline __declspec(noinline)
#else
# define av_noinline
#endif