Guard use of LibraryVersion() under MSVC (Issue 371)

pull/378/head
Jeffrey Walton 2017-02-07 15:03:13 -05:00
parent a25fa00a3f
commit 6511868bc8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 0 deletions

View File

@ -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.