From e31cb75a14a9f3b5572a455a8ad386af0e1e73a8 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Wed, 12 Sep 2012 04:39:25 +0900 Subject: [PATCH] Emulate S_ISDIR() macro on Windows --- document.cpp | 1 + win32/unistd.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/document.cpp b/document.cpp index 6f8d83c8..755a0be9 100644 --- a/document.cpp +++ b/document.cpp @@ -6,6 +6,7 @@ #include #include #include +#include namespace Sass { diff --git a/win32/unistd.h b/win32/unistd.h index 88ce1442..2ded7f1a 100644 --- a/win32/unistd.h +++ b/win32/unistd.h @@ -9,8 +9,9 @@ #include #include -#include /* for getpid() and the exec..() family */ -#include /* for _getcwd() */ +#include /* for getpid() and the exec..() family */ +#include /* for _getcwd() */ +#include /* for _S_IFDIR */ #define srandom srand #define random rand @@ -25,6 +26,7 @@ #define access _access #define ftruncate _chsize #define getcwd _getcwd +#define S_ISDIR(B) ((B)&_S_IFDIR) #define STDIN_FILENO 0 #define STDOUT_FILENO 1