Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 6fa2573

Browse files
committed
uri: Enable Windows paths on Cygwin
1 parent dc8c7d1 commit 6fa2573

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

uri.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ xmlIsPathSeparator(int c, int isFile) {
14691469
if (c == '/')
14701470
return(1);
14711471

1472-
#ifdef _WIN32
1472+
#if defined(_WIN32) || defined(__CYGWIN__)
14731473
if (isFile && (c == '\\'))
14741474
return(1);
14751475
#endif
@@ -1511,7 +1511,7 @@ xmlNormalizePath(char *path, int isFile) {
15111511
* Collapse multiple separators first.
15121512
*/
15131513
while (xmlIsPathSeparator(*cur, isFile)) {
1514-
#ifdef _WIN32
1514+
#if defined(_WIN32) || defined(__CYGWIN__)
15151515
/* Allow two separators at start of path */
15161516
if ((isFile) && (out == path + 1))
15171517
*out++ = '/';
@@ -1876,7 +1876,7 @@ xmlIsAbsolutePath(const xmlChar *path) {
18761876
if (xmlIsPathSeparator(c, 1))
18771877
return(1);
18781878

1879-
#ifdef _WIN32
1879+
#if defined(_WIN32) || defined(__CYGWIN__)
18801880
if ((((c >= 'A') && (c <= 'Z')) ||
18811881
((c >= 'a') && (c <= 'z'))) &&
18821882
(path[1] == ':'))

0 commit comments

Comments
 (0)