Windows: fixed a number of int size warnings mostly by casting them away
--HG-- branch : WINDOWSPORT
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <sys/param.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/file.h>
|
||||
#include <glob.h>
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
@@ -420,25 +419,6 @@ bool makepath(const string& ipath)
|
||||
return true;
|
||||
}
|
||||
|
||||
vector<string> path_dirglob(const string &dir, const string pattern)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return vector<string>();
|
||||
#else
|
||||
vector<string> res;
|
||||
glob_t mglob;
|
||||
string mypat=path_cat(dir, pattern);
|
||||
if (glob(mypat.c_str(), 0, 0, &mglob)) {
|
||||
return res;
|
||||
}
|
||||
for (int i = 0; i < int(mglob.gl_pathc); i++) {
|
||||
res.push_back(mglob.gl_pathv[i]);
|
||||
}
|
||||
globfree(&mglob);
|
||||
return res;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool path_isdir(const string& path)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
Reference in New Issue
Block a user