Avoid inlining LibraryVersion (Issue 371)

This commit is contained in:
Jeffrey Walton 2017-03-14 10:26:51 -04:00
parent f9773d2961
commit d8570a3435
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 2 deletions

View File

@ -947,7 +947,7 @@ void AuthenticatedKeyAgreementDomain::GenerateEphemeralKeyPair(RandomNumberGener
#ifndef CRYPTOPP_BUILD_VERSION
# define CRYPTOPP_BUILD_VERSION CRYPTOPP_VERSION
#endif
int LibraryVersion()
int LibraryVersion(CRYPTOPP_NOINLINE_DOTDOTDOT)
{
return CRYPTOPP_BUILD_VERSION;
}

View File

@ -2943,7 +2943,7 @@ public:
//! \sa HeaderVersion(), <A HREF="http://github.com/weidai11/cryptopp/issues/371">GitHub Issue 371</A>.
//! \since Crypto++ 6.0
extern "C" {
int LibraryVersion();
int LibraryVersion(CRYPTOPP_NOINLINE_DOTDOTDOT);
} // C linkage
//! \brief Specifies the runtime version of the library