From 94db43de97ca1cc9cbdb89e4351a15bc0f6e9fa9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 19 Jul 2015 15:09:04 -0400 Subject: [PATCH] Cleared -Wunknown-pragmas under GCC 5.1/Cygwin on Windows --- osrng.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/osrng.h b/osrng.h index 3a6dd2cc..962f16bd 100644 --- a/osrng.h +++ b/osrng.h @@ -45,8 +45,11 @@ private: ProviderHandle m_hProvider; }; -#pragma comment(lib, "advapi32.lib") -#endif +#if !defined(__CYGWIN__) && !defined(__CYGWIN32__) +# pragma comment(lib, "advapi32.lib") +#endif // Cygwin + +#endif //CRYPTOPP_WIN32_AVAILABLE //! encapsulate CryptoAPI's CryptGenRandom or /dev/urandom class CRYPTOPP_DLL NonblockingRng : public RandomNumberGenerator @@ -86,7 +89,7 @@ protected: CRYPTOPP_DLL void CRYPTOPP_API OS_GenerateRandomBlock(bool blocking, byte *output, size_t size); -//! Automaticly Seeded Randomness Pool +//! Automatically Seeded Randomness Pool /*! This class seeds itself using an operating system provided RNG. */ class CRYPTOPP_DLL AutoSeededRandomPool : public RandomPool {