projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e394a
)
Don't compile pcgrandom on Windows
author
est31
<MTest31@outlook.com>
Sun, 8 Nov 2015 17:16:20 +0000
(18:16 +0100)
committer
est31
<MTest31@outlook.com>
Sun, 8 Nov 2015 17:26:20 +0000
(18:26 +0100)
There it isn't needed.
src/util/srp.cpp
patch
|
blob
|
history
diff --git
a/src/util/srp.cpp
b/src/util/srp.cpp
index b4af58d624ba582283d5e207ec7731ee575d3c8c..e3812ee54741f8c2c47f58937d3101cbfb16ec3e 100644
(file)
--- 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()
{