diff options
Diffstat (limited to 'include/mupdf/fitz/system.h')
-rw-r--r-- | include/mupdf/fitz/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 6870ec03..73003c3b 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -229,6 +229,11 @@ typedef int fz_off_t; #define fz_atoo_imp atoi #endif +/* Cope with systems (such as Windows) with no S_ISDIR */ +#ifndef S_ISDIR +#define S_ISDIR(mode) ((mode) & S_IFDIR) +#endif + /* Portable way to format a size_t */ #if defined(_WIN64) #define FZ_FMT_zu "%llu" |