From 6511868bc8a800b1c4f4d6cf06a2a668713815b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 7 Feb 2017 15:03:13 -0500 Subject: [PATCH] Guard use of LibraryVersion() under MSVC (Issue 371) --- validat1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validat1.cpp b/validat1.cpp index 0c8ca6f8..bedc4c8b 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -228,6 +228,7 @@ bool TestSettings() pass = false; } +#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS) // App and library versions, http://github.com/weidai11/cryptopp/issues/371 const int v1 = LibraryVersion(); const int v2 = HeaderVersion(); @@ -239,6 +240,7 @@ bool TestSettings() pass = false; } cout << "Library version (library): " << v1 << ", header version (app): " << v2 << "\n"; +#endif #ifdef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS // Don't assert the alignment of testvals. That's what this test is for.