mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-23 12:18:47 -04:00
+ port to windows
This commit is contained in:
parent
4b545b8ae2
commit
784f87e715
@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
#include "pathTools.h"
|
#include "pathTools.h"
|
||||||
|
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
#define PATH_MAX 1024
|
||||||
|
#endif
|
||||||
|
|
||||||
bool isRelativePath(const string &path) {
|
bool isRelativePath(const string &path) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return path.empty() || path.substr(1, 2) == ":\\" ? false : true;
|
return path.empty() || path.substr(1, 2) == ":\\" ? false : true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user