diff --git a/trap.h b/trap.h index f41d4a1e..917c9bce 100644 --- a/trap.h +++ b/trap.h @@ -5,7 +5,7 @@ //! \brief Debugging and diagnostic assertions //! \details CRYPTOPP_ASSERT is the library's debugging and diagnostic assertion. CRYPTOPP_ASSERT //! is enabled by CRYPTOPP_DEBUG, DEBUG or _DEBUG. -//! \details CRYPTOPP_ASSERT raises a SIGTRAP (Unix) or calls DebugBreak() (Windows). +//! \details CRYPTOPP_ASSERT raises a SIGTRAP (Unix) or calls __debugbreak() (Windows). //! CRYPTOPP_ASSERT is only in effect when the user requests a debug configuration. Unlike Posix assert, //! NDEBUG (or failure to define it) does not affect the library. //! The traditional Posix define NDEBUG has no effect on CRYPTOPP_DEBUG or DebugTrapHandler. @@ -25,7 +25,9 @@ # if defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) # include # elif defined(CRYPTOPP_WIN32_AVAILABLE) -# include +# if (_MSC_VER >= 1400) +# include +# endif # endif #endif // CRYPTOPP_DEBUG