From e0dc51edf9867d082f90ff4fbbae5df90aa3471c Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 4 Oct 2018 22:12:33 +0300 Subject: [PATCH] Fixed build without cn-lite. --- algo/cryptonight/cryptonight.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algo/cryptonight/cryptonight.c b/algo/cryptonight/cryptonight.c index a501c61c..728e5822 100644 --- a/algo/cryptonight/cryptonight.c +++ b/algo/cryptonight/cryptonight.c @@ -67,8 +67,6 @@ void cryptonight_lite_av4_v0(const uint8_t *input, size_t size, uint8_t *output, void cryptonight_lite_av4_v1(const uint8_t *input, size_t size, uint8_t *output, struct cryptonight_ctx **ctx); #endif -void (*cryptonight_hash_ctx)(const void* input, size_t size, void* output, struct cryptonight_ctx* ctx, uint8_t version) = NULL; - static inline bool verify(enum Variant variant, uint8_t *output, struct cryptonight_ctx **ctx, const uint8_t *referenceValue) { @@ -101,10 +99,12 @@ static bool self_test() { verify(VARIANT_1, output, ctx, test_output_v1) && verify(VARIANT_2, output, ctx, test_output_v2); } +# ifndef XMRIG_NO_AEON else { result = verify(VARIANT_0, output, ctx, test_output_v0_lite) && verify(VARIANT_1, output, ctx, test_output_v1_lite); } +# endif for (int i = 0; i < count; ++i) {