Intermittently, g++ doesn't like inline functions. Just remove'em.
This commit is contained in:
@@ -30,7 +30,7 @@ void split(const CString& Source, const CString& Deliminator, vector<CString>& A
|
|||||||
} while (startpos <= Source.size());
|
} while (startpos <= Source.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool IsADirectory(const CString& path)
|
bool IsADirectory(const CString& path)
|
||||||
{
|
{
|
||||||
struct stat s;
|
struct stat s;
|
||||||
if (stat(path, &s))
|
if (stat(path, &s))
|
||||||
@@ -44,7 +44,7 @@ bool DoesFileExist(const CString& path)
|
|||||||
return !stat(path, &s);
|
return !stat(path, &s);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline CString LastPathComponent(const CString& path)
|
CString LastPathComponent(const CString& path)
|
||||||
{
|
{
|
||||||
unsigned pos = path.rfind('/');
|
unsigned pos = path.rfind('/');
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using namespace std;
|
|||||||
void split(const CString& Source, const CString& Deliminator, vector<CString>& AddIt);
|
void split(const CString& Source, const CString& Deliminator, vector<CString>& AddIt);
|
||||||
bool IsADirectory(const CString& path);
|
bool IsADirectory(const CString& path);
|
||||||
bool DoesFileExist(const CString& path);
|
bool DoesFileExist(const CString& path);
|
||||||
inline CString LastPathComponent(const CString& path);
|
CString LastPathComponent(const CString& path);
|
||||||
void FileListingForDirectoryWithIgnore(const CString& path, CStringArray& list, CStringArray& dirs,
|
void FileListingForDirectoryWithIgnore(const CString& path, CStringArray& list, CStringArray& dirs,
|
||||||
const set<CString>& ignore, bool ignoreDot = true);
|
const set<CString>& ignore, bool ignoreDot = true);
|
||||||
int mkdir_p(const CString& path);
|
int mkdir_p(const CString& path);
|
||||||
|
|||||||
Reference in New Issue
Block a user