* 2009-01-04 - <james.dickson@comhem.se> - Slightly modified (or "fulhack" as \r
* we say in sweden) to support cain .lst files.\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
* along with rcracki_mt. If not, see <http://www.gnu.org/licenses/>.\r
*/\r
\r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
#pragma warning(disable : 4786 4267 4018)\r
#endif\r
\r
#include <dirent.h>\r
#endif\r
\r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
#pragma comment(lib, "libeay32.lib")\r
#endif\r
\r
//vPathName.clear();\r
\r
string sPath;\r
- int n = sWildCharPathName.find_last_of('\\');\r
+ string::size_type n = sWildCharPathName.find_last_of('\\');\r
\r
- if (n == (sWildCharPathName.size() - 1))\r
+ if ( n == (sWildCharPathName.size() - 1) )\r
{\r
sWildCharPathName = sWildCharPathName.substr(0, n);\r
n = sWildCharPathName.find_last_of('\\');\r
}\r
\r
- if (n != -1)\r
+ if (n != string::npos)\r
sPath = sWildCharPathName.substr(0, n + 1);\r
\r
_finddata_t fd;\r