diff --git a/include/date/date.h b/include/date/date.h index 481db2b..5731bbb 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -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