summaryrefslogtreecommitdiff
path: root/dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'dll.h')
-rw-r--r--dll.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/dll.h b/dll.h
index 5e42d46f..fe89b780 100644
--- a/dll.h
+++ b/dll.h
@@ -39,18 +39,20 @@
#ifdef CRYPTOPP_IMPORTS
-#ifdef _DLL
+#if defined(_MSC_VER) && defined(_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")
-#else
-#pragma comment(lib, "msvcrtd")
-#endif
-#endif
+# ifdef NDEBUG
+# pragma comment(lib, "msvcrt")
+# else
+# pragma comment(lib, "msvcrtd")
+# endif // NDEBUG
+#endif // _MSC_VER and _DLL
-#pragma comment(lib, "cryptopp")
+#if defined(_MSC_VER)
+# pragma comment(lib, "cryptopp")
+#endif
-#endif // #ifdef CRYPTOPP_IMPORTS
+#endif // #ifdef CRYPTOPP_IMPORTS
#include <new> // for new_handler