diff options
author | Lautis Sun <lautis0503@gmail.com> | 2021-11-17 17:15:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 17:15:42 +0300 |
commit | 4acafe7916720645bf65e19be8603acfe7acdba1 (patch) | |
tree | ebdbd607475ae258cab222733c991f6ee28c6877 | |
parent | 99f75ca4dfa36a9c7d4f971da0e44ae3f30e202f (diff) | |
parent | daf125f265724a2713445b94e7a06e973184ba12 (diff) |
Merge pull request #70 from cxong/lstat_bugfix1.2.5
Use lstat() for macOS and *BSD (bug fix)
-rw-r--r-- | tinydir.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -548,7 +548,9 @@ int tinydir_readfile(const tinydir_dir *dir, tinydir_file *file) if (_tstat( #elif (defined _BSD_SOURCE) || (defined _DEFAULT_SOURCE) \ || ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)) \ - || ((defined _POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)) + || ((defined _POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)) \ + || ((defined __APPLE__) && (defined __MACH__)) \ + || (defined BSD) if (lstat( #else if (stat( |