diff options
author | est31 <MTest31@outlook.com> | 2015-11-08 18:16:20 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-11-08 18:26:20 +0100 |
commit | 337c02c0f0186c52e2bd4307c6018295a1d2b137 (patch) | |
tree | d252ff1e65cf2d130e50ad6a6d2bc404374e6e19 | |
parent | f9e394a4669e667fcef8992946458c769b4e2770 (diff) | |
download | minetest-337c02c0f0186c52e2bd4307c6018295a1d2b137.tar.gz minetest-337c02c0f0186c52e2bd4307c6018295a1d2b137.tar.bz2 minetest-337c02c0f0186c52e2bd4307c6018295a1d2b137.zip |
Don't compile pcgrandom on Windows
There it isn't needed.
-rw-r--r-- | src/util/srp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/srp.cpp b/src/util/srp.cpp index b4af58d62..e3812ee54 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -496,6 +496,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; @@ -521,7 +522,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() { |