* Copyright 2009, 2010 Daniƫl Niggebrugge <niggebrugge@fox-it.com>\r
* Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
*\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
*\r
* rcracki_mt is free software: you can redistribute it and/or modify\r
* it under the terms of the GNU General Public License as published by\r
void tty_flush(void);\r
// end nmap code\r
\r
-#include <sys/time.h>\r
+#endif\r
\r
-#else\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
int gettimeofday( struct timeval *tv, struct timezone *tz );\r
#endif\r
\r
+#if !defined(_WIN32) || defined(__GNUC__)\r
+ #include <sys/time.h>\r
+#endif\r
+\r
timeval sub_timeofday( timeval tv2, timeval tv );\r
\r
-unsigned int GetFileLen(FILE* file);\r
+long GetFileLen(FILE* file);\r
string TrimString(string s);\r
+bool boinc_ReadLinesFromFile(string sPathName, vector<string>& vLine);\r
bool ReadLinesFromFile(string sPathName, vector<string>& vLine);\r
bool SeperateString(string s, string sSeperator, vector<string>& vPart);\r
string uint64tostr(uint64 n);\r
string uint64tohexstr(uint64 n);\r
string HexToStr(const unsigned char* pData, int nLen);\r
-uint64 GetAvailPhysMemorySize();\r
+unsigned long GetAvailPhysMemorySize();\r
string GetApplicationPath();\r
void ParseHash(string sHash, unsigned char* pHash, int& nHashLen);\r
bool GetHybridCharsets(string sCharset, vector<tCharset>& vCharset);\r