diff --git a/src/common/pathTools.cpp b/src/common/pathTools.cpp index 57ce464ef..de93ad8e6 100644 --- a/src/common/pathTools.cpp +++ b/src/common/pathTools.cpp @@ -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;