Conditionally set _SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING

This commit is contained in:
Howard Hinnant 2019-05-19 22:46:35 -04:00
parent 44215f6781
commit a029f1105d

View File

@ -96,7 +96,9 @@ namespace date
#if defined(_MSC_VER) && (!defined(__clang__) || (_MSC_VER < 1910))
// MSVC
# define _SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING
# ifndef _SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING
# define _SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING
# endf
# if _MSC_VER < 1910
// before VS2017
# define CONSTDATA const