Commit e1f74ad1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '09f2581d'

* commit '09f2581d':
  msvc/icl: Use __declspec(deprecated)

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents dda7bd13 09f2581d
...@@ -2754,7 +2754,7 @@ msvc_flags(){ ...@@ -2754,7 +2754,7 @@ msvc_flags(){
-wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \ -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \
-wd4152 -wd4324 -we4013 -wd4100 -wd4214 \ -wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
-wd4554 \ -wd4554 \
-wd4996 -wd4273 ;; -wd4273 ;;
esac esac
done done
} }
...@@ -2979,7 +2979,7 @@ probe_cc(){ ...@@ -2979,7 +2979,7 @@ probe_cc(){
_ld_lib='lib%.a' _ld_lib='lib%.a'
_ld_path='-libpath:' _ld_path='-libpath:'
_flags='-nologo' _flags='-nologo'
_cflags='-D_USE_MATH_DEFINES -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64' _cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64'
if [ $pfx = hostcc ]; then if [ $pfx = hostcc ]; then
append _cflags -Dsnprintf=_snprintf append _cflags -Dsnprintf=_snprintf
fi fi
...@@ -4533,6 +4533,7 @@ elif enabled_any msvc icl; then ...@@ -4533,6 +4533,7 @@ elif enabled_any msvc icl; then
enabled x86_32 && disable aligned_stack enabled x86_32 && disable aligned_stack
enabled_all x86_32 debug && add_cflags -Oy- enabled_all x86_32 debug && add_cflags -Oy-
enabled debug && add_ldflags -debug enabled debug && add_ldflags -debug
enable pragma_deprecated
if enabled icl; then if enabled icl; then
# basically -fstrict-aliasing that does not work (correctly) on icl 13.x # basically -fstrict-aliasing that does not work (correctly) on icl 13.x
check_cpp_condition "windows.h" "__ICL < 1300" && add_cflags -Qansi-alias check_cpp_condition "windows.h" "__ICL < 1300" && add_cflags -Qansi-alias
......
...@@ -63,8 +63,16 @@ ...@@ -63,8 +63,16 @@
#endif #endif
#if HAVE_PRAGMA_DEPRECATED #if HAVE_PRAGMA_DEPRECATED
# 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_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"") # define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
# endif
#else #else
# define FF_DISABLE_DEPRECATION_WARNINGS # define FF_DISABLE_DEPRECATION_WARNINGS
# define FF_ENABLE_DEPRECATION_WARNINGS # define FF_ENABLE_DEPRECATION_WARNINGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment