Browse files

Changing the path separator depending on whether or not LibSass is be…

…ing built under Windows.
  • Loading branch information...
1 parent d0e6ea2 commit 29289bbbceb26949f6625e1c1cc1bd5f54dca0f2 Aaron Leung committed Nov 29, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 context.cpp
View
6 context.cpp
@@ -1,8 +1,10 @@
#ifdef _WIN32
#include <direct.h>
#define getcwd _getcwd
+#define PATH_SEP ';'
#else
#include <unistd.h>
+#define PATH_SEP ':'
#endif
#include <cstring>
@@ -27,7 +29,7 @@ namespace Sass {
if (paths_str) {
const char* beg = paths_str;
- const char* end = Prelexer::find_first<':'>(beg);
+ const char* end = Prelexer::find_first<PATH_SEP>(beg);
while (end) {
string path(beg, end - beg);
@@ -36,7 +38,7 @@ namespace Sass {
include_paths.push_back(path);
}
beg = end + 1;
- end = Prelexer::find_first<':'>(beg);
+ end = Prelexer::find_first<PATH_SEP>(beg);
}
string path(beg);

0 comments on commit 29289bb

Please sign in to comment.