summaryrefslogtreecommitdiff
path: root/dll.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-23 09:09:50 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-23 09:09:50 -0400
commit809a3cbb7497c4a72873cee5c72725c3ff61bf0d (patch)
tree8be3ffe4246f4d51752b103e5f34ea16b3e28e77 /dll.h
parentbdb7ea3bf09a6fc7f9b28f727319a9d9178ab57c (diff)
downloadcryptopp-git-809a3cbb7497c4a72873cee5c72725c3ff61bf0d.tar.gz
Cleared unknown pragma warning under MinGW
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