Don't compile pcgrandom on Windows
authorest31 <MTest31@outlook.com>
Sun, 8 Nov 2015 17:16:20 +0000 (18:16 +0100)
committerest31 <MTest31@outlook.com>
Sun, 8 Nov 2015 17:26:20 +0000 (18:26 +0100)
There it isn't needed.

src/util/srp.cpp

index b4af58d624ba582283d5e207ec7731ee575d3c8c..e3812ee54741f8c2c47f58937d3101cbfb16ec3e 100644 (file)
@@ -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()
 {