summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dll.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dll.h b/dll.h
index 3f103fda..3fd4b083 100644
--- a/dll.h
+++ b/dll.h
@@ -47,15 +47,15 @@
#ifdef _DLL
// cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()
-#ifdef NDEBUG
-#pragma comment(lib, "msvcrt")
+#ifdef CRYPTOPP_DEBUG
+# pragma comment(lib, "msvcrtd")
+# pragma comment(lib, "cryptopp")
#else
-#pragma comment(lib, "msvcrtd")
+# pragma comment(lib, "msvcrt")
+# pragma comment(lib, "cryptopp")
#endif
#endif
-#pragma comment(lib, "cryptopp")
-
#endif // #ifdef CRYPTOPP_IMPORTS
#include <new> // for new_handler