Skip to content

Commit 29289bb

Browse files
author
Aaron Leung
committed
Changing the path separator depending on whether or not LibSass is being built under Windows.
1 parent d0e6ea2 commit 29289bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

context.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#ifdef _WIN32
22
#include <direct.h>
33
#define getcwd _getcwd
4+
#define PATH_SEP ';'
45
#else
56
#include <unistd.h>
7+
#define PATH_SEP ':'
68
#endif
79

810
#include <cstring>
@@ -27,7 +29,7 @@ namespace Sass {
2729

2830
if (paths_str) {
2931
const char* beg = paths_str;
30-
const char* end = Prelexer::find_first<':'>(beg);
32+
const char* end = Prelexer::find_first<PATH_SEP>(beg);
3133

3234
while (end) {
3335
string path(beg, end - beg);
@@ -36,7 +38,7 @@ namespace Sass {
3638
include_paths.push_back(path);
3739
}
3840
beg = end + 1;
39-
end = Prelexer::find_first<':'>(beg);
41+
end = Prelexer::find_first<PATH_SEP>(beg);
4042
}
4143

4244
string path(beg);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy