4
#if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL)
5
#ifdef CRYPTOPP_CONFIG_H
6
#error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
8
#define CRYPTOPP_IMPORTS
40
#ifdef CRYPTOPP_IMPORTS
43
// cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()
45
#pragma comment(lib, "msvcrt")
47
#pragma comment(lib, "msvcrtd")
51
#pragma comment(lib, "cryptopp")
53
#endif // #ifdef CRYPTOPP_IMPORTS
55
#include <new> // for new_handler
57
NAMESPACE_BEGIN(CryptoPP)
59
#if !(defined(_MSC_VER) && (_MSC_VER < 1300))
60
using std::new_handler;
63
typedef void * (CRYPTOPP_API * PNew)(size_t);
64
typedef void (CRYPTOPP_API * PDelete)(void *);
65
typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &);
66
typedef new_handler (CRYPTOPP_API * PSetNewHandler)(new_handler);
67
typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);