From eb11f659bbeacfab0a3110dbe40dd6099b77e308 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 13 Aug 2017 13:53:34 +0800 Subject: Move S_ISDIR workaround to common header file. Might be useful in locations other than directory.c. --- source/fitz/directory.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/fitz/directory.c') diff --git a/source/fitz/directory.c b/source/fitz/directory.c index a269ef9a..df42f83c 100644 --- a/source/fitz/directory.c +++ b/source/fitz/directory.c @@ -53,11 +53,6 @@ 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) { -- cgit v1.2.3