From bc0806d50daff7d52d7bf7ed20811f0db80797df Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jul 2010 05:35:54 +0000 Subject: [PATCH] fix build of dlltest project on MSVC 2008 fix compile on C++Builder 2010 --- dlltest.cpp | 1 - stdcpp.h | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlltest.cpp b/dlltest.cpp index dac90933..4afd305b 100644 --- a/dlltest.cpp +++ b/dlltest.cpp @@ -3,7 +3,6 @@ #endif #include "dll.h" -#include USING_NAMESPACE(CryptoPP) USING_NAMESPACE(std) diff --git a/stdcpp.h b/stdcpp.h index 535f0e75..461fee9d 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -1,6 +1,11 @@ #ifndef CRYPTOPP_STDCPP_H #define CRYPTOPP_STDCPP_H +#if _MSC_VER >= 1500 +#define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY +#include +#endif + #include #include #include @@ -22,7 +27,7 @@ // for alloca #ifdef __sun #include -#elif defined(__MINGW32__) +#elif defined(__MINGW32__) || defined(__BORLANDC__) #include #endif