mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Don't compile pcgrandom on Windows
There it isn't needed.
This commit is contained in:
parent
f9e394a466
commit
337c02c0f0
1 changed files with 2 additions and 1 deletions
|
@ -496,6 +496,7 @@ static void calculate_H_AMK(SRP_HashAlgorithm alg, unsigned char *dest, const mp
|
||||||
hash_final(alg, &ctx, dest);
|
hash_final(alg, &ctx, dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
|
|
||||||
struct srp_pcgrandom {
|
struct srp_pcgrandom {
|
||||||
unsigned long long int m_state;
|
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;
|
r->m_state += state;
|
||||||
srp_pcgrandom_next(r);
|
srp_pcgrandom_next(r);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static SRP_Result fill_buff()
|
static SRP_Result fill_buff()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue