From 695822e45d9ca48b75b4ec1af1b4eea19139f8b1 Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 8 Nov 2015 18:14:03 +0100 Subject: [PATCH] Don't compile pcgrandom on windows There it isn't needed. --- srp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srp.c b/srp.c index 6d352f3..b57e4c1 100644 --- a/srp.c +++ b/srp.c @@ -489,6 +489,7 @@ static void calculate_H_AMK(SRP_HashAlgorithm alg, unsigned char *dest, const mp hash_final(alg, &ctx, dest); } +#ifndef WIN32 struct srp_pcgrandom { unsigned long long int m_state; @@ -514,7 +515,7 @@ static void srp_pcgrandom_seed(srp_pcgrandom *r, unsigned long long int state, r->m_state += state; srp_pcgrandom_next(r); } - +#endif static SRP_Result fill_buff() {