summaryrefslogtreecommitdiff
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorAlex Smith <alex.smith@warpsharp.info>2013-09-19 16:58:21 -0400
committerMartin Storsjö <martin@martin.st>2013-09-20 14:40:06 +0300
commit09f2581dc5edb3642858d69d9a70b67e249167e9 (patch)
tree3d420649016ebb804f218bbf6f9657d8c9cf5646 /libavutil/attributes.h
parent5532ee6d7d554bb54d4374d0b69f72bc9ab9fd91 (diff)
msvc/icl: Use __declspec(deprecated)
Prior to this on msvc/icl there was no handling of deprecated functions and the deprecated warning was disabled. After enabling there are a number of warnings relating to the CRT and the use of the non-secure versions of several functions. Defining _CRT_SECURE_NO_WARNINGS silences these warnings. 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 292a0a1a88..850a73ff7a 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -72,6 +72,8 @@
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define attribute_deprecated __attribute__((deprecated))
+#elif defined(_MSC_VER)
+# define attribute_deprecated __declspec(deprecated)
#else
# define attribute_deprecated
#endif