From 809a3cbb7497c4a72873cee5c72725c3ff61bf0d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 23 Jul 2015 09:09:50 -0400 Subject: Cleared unknown pragma warning under MinGW --- dll.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'dll.h') 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 // for new_handler -- cgit v1.2.1