diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-12-15 15:10:26 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-08 22:58:20 +0200 |
commit | 035418336e84d1afbeed989cd3a112e06d0b4590 (patch) | |
tree | d6c1b2ea2a54b2a42e673441db68a190da80f145 | |
parent | fef095f785f3289046202afd259e20044c733e0a (diff) | |
download | qtlocation-mapboxgl-035418336e84d1afbeed989cd3a112e06d0b4590.tar.gz |
[windows][core] Define S_ISDIR when not defined
-rw-r--r-- | platform/default/local_file_source.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/default/local_file_source.cpp b/platform/default/local_file_source.cpp index 21a291d8d4..21803d0935 100644 --- a/platform/default/local_file_source.cpp +++ b/platform/default/local_file_source.cpp @@ -9,7 +9,10 @@ #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> + +#if defined(_WINDOWS) && !defined(S_ISDIR) +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif namespace { |