summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/directory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/fitz/directory.c b/source/fitz/directory.c
index df42f83c..a269ef9a 100644
--- a/source/fitz/directory.c
+++ b/source/fitz/directory.c
@@ -53,6 +53,11 @@ static int has_dir_entry(fz_context *ctx, fz_archive *arch, const char *name)
return fz_file_exists(ctx, path);
}
+/* Cope with systems (such as Windows) with no S_ISDIR */
+#ifndef S_ISDIR
+#define S_ISDIR(mode) ((mode) & S_IFDIR)
+#endif
+
int
fz_is_directory(fz_context *ctx, const char *path)
{