Fixed compile on Cygwin x86_64. Thanks to Alex Afanasyev

reviewable/pr7/r1
Jeffrey Walton 2015-06-30 22:25:15 -04:00
parent 1d8934e5b7
commit 91b0730c33
1 changed files with 7 additions and 2 deletions

View File

@ -30,11 +30,16 @@ class CRYPTOPP_DLL MicrosoftCryptoProvider
public: public:
MicrosoftCryptoProvider(); MicrosoftCryptoProvider();
~MicrosoftCryptoProvider(); ~MicrosoftCryptoProvider();
#if defined(_WIN64)
typedef unsigned __int64 ProviderHandle; // type HCRYPTPROV, avoid #include <windows.h> // type HCRYPTPROV, avoid #include <windows.h>
#if defined(__CYGWIN__) && defined(__x86_64__)
typedef unsigned long long ProviderHandle;
#elif defined(_WIN64)
typedef unsigned __int64 ProviderHandle;
#else #else
typedef unsigned long ProviderHandle; typedef unsigned long ProviderHandle;
#endif #endif
ProviderHandle GetProviderHandle() const {return m_hProvider;} ProviderHandle GetProviderHandle() const {return m_hProvider;}
private: private:
ProviderHandle m_hProvider; ProviderHandle m_hProvider;