Skip to content

Commit

Permalink
use findclose() if available [fixes #92]
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Apr 3, 2024
1 parent fe97f9c commit 5a08fc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ static inline int findnext_f(finddata_t *ff, long handle)
}
static inline int findclose_f(long handle)
{
#ifdef HAVE_FINDCLOSE
return findclose(handle);
#else
return 0;
#endif
}
/* File attributes */
static inline unsigned int setfileattr(const char *filename, unsigned int attr)
Expand Down

0 comments on commit 5a08fc7

Please sign in to comment.