Avoid inlining LibraryVersion (Issue 371)

pull/392/head
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 #ifndef CRYPTOPP_BUILD_VERSION
# define CRYPTOPP_BUILD_VERSION CRYPTOPP_VERSION # define CRYPTOPP_BUILD_VERSION CRYPTOPP_VERSION
#endif #endif
int LibraryVersion() int LibraryVersion(CRYPTOPP_NOINLINE_DOTDOTDOT)
{ {
return CRYPTOPP_BUILD_VERSION; 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>. //! \sa HeaderVersion(), <A HREF="http://github.com/weidai11/cryptopp/issues/371">GitHub Issue 371</A>.
//! \since Crypto++ 6.0 //! \since Crypto++ 6.0
extern "C" { extern "C" {
int LibraryVersion(); int LibraryVersion(CRYPTOPP_NOINLINE_DOTDOTDOT);
} // C linkage } // C linkage
//! \brief Specifies the runtime version of the library //! \brief Specifies the runtime version of the library