diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-05-18 08:36:00 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-18 08:36:00 -0400 |
commit | ddcd70b152964db5ced3623f26c61f7a4f8d31f5 (patch) | |
tree | 1fb0a62be3729e1b1f271f672c79d58df6b0f481 /validat1.cpp | |
parent | 3fe188ba894e7e0b0723f93675498efb8b3fb771 (diff) | |
download | cryptopp-git-ddcd70b152964db5ced3623f26c61f7a4f8d31f5.tar.gz |
Fix "error C2065: prng undeclared identifier" under Windows Phone
Diffstat (limited to 'validat1.cpp')
-rw-r--r-- | validat1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validat1.cpp b/validat1.cpp index fa43cc92..27332172 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -625,7 +625,7 @@ bool TestRandomPool() std::cout << " GenerateWord32 and Crop\n";
}
-#if !defined(NO_OS_DEPENDENCE)
+#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)
std::cout << "\nTesting AutoSeeded RandomPool generator...\n\n";
{
AutoSeededRandomPool prng;
@@ -718,7 +718,7 @@ bool TestRandomPool() return pass;
}
-#if !defined(NO_OS_DEPENDENCE)
+#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)
bool TestAutoSeededX917()
{
// This tests Auto-Seeding and GenerateIntoBufferedTransformation.
|