Skip to content

Commit

Permalink
Use lstat() instead of stat() when available. (fixes #63)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis0503 committed Feb 10, 2019
1 parent fab8821 commit 4e17cff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tinydir.h
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ int tinydir_readfile(const tinydir_dir *dir, tinydir_file *file)
#ifndef _MSC_VER
#ifdef __MINGW32__
if (_tstat(
#elif (defined _BSD_SOURCE) || (defined _DEFAULT_SOURCE) \
|| ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)) \
|| ((defined _POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L))
if (lstat(
#else
if (stat(
#endif
Expand Down

0 comments on commit 4e17cff

Please sign in to comment.