mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-28 07:44:17 +08:00
win: fix incorrect directory detection
Allow other flags too...
This commit is contained in:
parent
acbab220c8
commit
ec67dc482f
3
libtcc.c
3
libtcc.c
@ -1538,7 +1538,8 @@ int is_dir(file_info_t *info)
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
return S_ISDIR(info->st_mode);
|
return S_ISDIR(info->st_mode);
|
||||||
#else
|
#else
|
||||||
return info->dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY;
|
return (info->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ==
|
||||||
|
FILE_ATTRIBUTE_DIRECTORY;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user