summaryrefslogtreecommitdiff
path: root/dll.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-10 04:34:23 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-10 04:34:23 +0000
commit473e5df89b35dc376d50f3e53acb1df7ba93c853 (patch)
treece43a3a2973d29a78e6b401f7a4a367e914f5490 /dll.h
parent699e6219b54bb310b0e6b6e719df4dce70c20060 (diff)
downloadcryptopp-git-473e5df89b35dc376d50f3e53acb1df7ba93c853.tar.gz
merge in 5.0.4 changes (exclude DES and SHA-2 from DLL),
attempt (failed) to build DLL with GCC
Diffstat (limited to 'dll.h')
-rw-r--r--dll.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/dll.h b/dll.h
index a8b07d69..e2554be7 100644
--- a/dll.h
+++ b/dll.h
@@ -1,7 +1,7 @@
#ifndef CRYPTOPP_DLL_H
#define CRYPTOPP_DLL_H
-#if !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_NO_DLL)
+#if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_NO_DLL)
#ifdef CRYPTOPP_CONFIG_H
#error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
#endif
@@ -47,14 +47,18 @@
#endif // #ifdef CRYPTOPP_IMPORTS
-#include <new.h> // for _PNH
+#include <new> // for new_handler
NAMESPACE_BEGIN(CryptoPP)
+#if !(defined(_MSC_VER) && (_MSC_VER < 1300))
+using std::new_handler;
+#endif
+
typedef void * (_cdecl * PNew)(size_t);
typedef void (_cdecl * PDelete)(void *);
typedef void (_cdecl * PGetNewAndDelete)(PNew &, PDelete &);
-typedef _PNH (_cdecl * PSetNewHandler)(_PNH);
+typedef new_handler (_cdecl * PSetNewHandler)(new_handler);
typedef void (_cdecl * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);
CRYPTOPP_DLL void DoDllPowerUpSelfTest();