From 7620976826e059e3d8c24f3d7e5a8878b2d541a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 17 Sep 2016 18:42:35 -0400 Subject: [PATCH] Guard inclusion of with VS2005 and above --- trap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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