diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-20 15:50:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-20 15:51:27 +0200 |
commit | e1f74ad1f0102648e2db8e4fda788f47d38a94ad (patch) | |
tree | a415202d6f9e2edc597ddb433309cf71ddc1f0f6 /libavutil | |
parent | dda7bd13b3498243a199c77aac4fca602147828f (diff) | |
parent | 09f2581dc5edb3642858d69d9a70b67e249167e9 (diff) | |
download | ffmpeg-e1f74ad1f0102648e2db8e4fda788f47d38a94ad.tar.gz |
Merge commit '09f2581dc5edb3642858d69d9a70b67e249167e9'
* commit '09f2581dc5edb3642858d69d9a70b67e249167e9':
msvc/icl: Use __declspec(deprecated)
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 9df2dd1d71..6bc426e925 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -63,8 +63,16 @@ #endif #if HAVE_PRAGMA_DEPRECATED -# define FF_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") -# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"") +# if defined(__ICL) +# define FF_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:1478)) +# define FF_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop)) +# elif defined(_MSC_VER) +# define FF_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:4996)) +# define FF_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop)) +# else +# define FF_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"") +# endif #else # define FF_DISABLE_DEPRECATION_WARNINGS # define FF_ENABLE_DEPRECATION_WARNINGS |