mirror of https://github.com/kiwix/libkiwix.git
+ port to windows
This commit is contained in:
parent
4b545b8ae2
commit
784f87e715
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue