Fix issues for latest GCC toolchain

This commit is contained in:
Justine Tunney 2023-10-11 14:54:42 -07:00
parent 5cb9b2658c
commit 3b086af91b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
22 changed files with 148 additions and 166 deletions

View file

@ -185,6 +185,10 @@ static textwindows uint8_t GetNtDirentType(struct NtWin32FindData *w) {
static textwindows dontinline struct dirent *readdir_nt(DIR *dir) {
TryAgain:
while (!dir->isdone &&
(dir->windata.dwFileAttributes & kNtFileAttributeSystem)) {
dir->isdone = !FindNextFile(dir->hand, &dir->windata);
}
if (dir->isdone) {
return NULL;
}