From 925574028575293e475a74f96e5cff0be117f24a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 3 Jan 2019 21:00:22 -0500 Subject: Fix self test NEON compile with MSVC compiler (GH #776) --- validat7.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validat7.cpp') diff --git a/validat7.cpp b/validat7.cpp index b240993f..db9c31ea 100644 --- a/validat7.cpp +++ b/validat7.cpp @@ -404,7 +404,7 @@ bool TestX25519() int ret2 = Donna::curve25519_mult(share2, priv2, pub1); int ret3 = std::memcmp(share1, share2, 32); -#if defined(NO_OS_DEPENDENCE) +#if defined(CRYPTOPP_DISABLE_NACL) int ret4=0, ret5=0, ret6=0; #else // Bernstein's NaCl requires DefaultAutoSeededRNG. @@ -436,7 +436,7 @@ bool TestEd25519() std::cout << "\nTesting ed25519 Signatures...\n\n"; bool pass = true; -#ifndef NO_OS_DEPENDENCE +#ifndef CRYPTOPP_DISABLE_NACL const unsigned int SIGN_COUNT = 64, MSG_SIZE=128; const unsigned int NACL_EXTRA=NaCl::crypto_sign_BYTES; -- cgit v1.2.1