]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/Public.h
backport rcracki_mt trunk from rcracki.sourceforge.net
[freerainbowtables] / Client Applications / rcracki_mt / Public.h
index 13fb0d380eb44d2f7bf2af3b5815e113c6912ad0..f5fc32c4618e503e92127abd6dee5b6fcdad7d9d 100644 (file)
@@ -6,7 +6,7 @@
  * 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
@@ -110,22 +110,27 @@ void tty_init();
 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