Fixes for compilation under Windows (specifically MSVC). Also added MSVC supported "_inline", and fixed some WIN32 specific warnings.

This commit is contained in:
Iain Denniston
2011-03-18 12:35:19 +00:00
committed by Marcelo Roberto Jimenez
parent fed316ff3e
commit 92ea719804
15 changed files with 59 additions and 28 deletions

View File

@@ -106,7 +106,7 @@ void get_random_info(unsigned char seed[16])
GetComputerName( r.hostname, &r.l );
/* MD5 it */
MD5Init(&c);
MD5Update(&c, &r, sizeof r);
MD5Update(&c, (unsigned char *)(&r), sizeof r);
MD5Final(seed, &c);
};