From 09f2581dc5edb3642858d69d9a70b67e249167e9 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Thu, 19 Sep 2013 16:58:21 -0400 Subject: msvc/icl: Use __declspec(deprecated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavutil/attributes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/attributes.h') 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 -- cgit v1.2.3