From d8570a34350664630f0ccf8970a7e250764b6d52 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 14 Mar 2017 10:26:51 -0400 Subject: [PATCH] Avoid inlining LibraryVersion (Issue 371) --- cryptlib.cpp | 2 +- cryptlib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptlib.cpp b/cryptlib.cpp index 7942ea25..140184ae 100644 --- a/cryptlib.cpp +++ b/cryptlib.cpp @@ -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; } diff --git a/cryptlib.h b/cryptlib.h index addf9c2c..867a84f1 100644 --- a/cryptlib.h +++ b/cryptlib.h @@ -2943,7 +2943,7 @@ public: //! \sa HeaderVersion(), GitHub Issue 371. //! \since Crypto++ 6.0 extern "C" { - int LibraryVersion(); + int LibraryVersion(CRYPTOPP_NOINLINE_DOTDOTDOT); } // C linkage //! \brief Specifies the runtime version of the library