From 784f87e71553dbfc3ac17b922c6c9720cfbc5444 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sat, 17 Dec 2011 14:59:43 +0000 Subject: [PATCH] + port to windows --- src/common/pathTools.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;