+ port to windows

This commit is contained in:
kelson42 2011-12-17 14:59:43 +00:00
parent 4b545b8ae2
commit 784f87e715
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#include "pathTools.h"
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
bool isRelativePath(const string &path) {
#ifdef _WIN32
return path.empty() || path.substr(1, 2) == ":\\" ? false : true;