summaryrefslogtreecommitdiff
path: root/stdcpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdcpp.h')
-rw-r--r--stdcpp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/stdcpp.h b/stdcpp.h
index 535f0e7..461fee9 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 <intrin.h>
+#endif
+
#include <stddef.h>
#include <assert.h>
#include <limits.h>
@@ -22,7 +27,7 @@
// for alloca
#ifdef __sun
#include <alloca.h>
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(__BORLANDC__)
#include <malloc.h>
#endif