Fix typos in macro names S_IBLK, S_ILNK, S_ICHR and S_IFIFO

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2016-04-06 14:30:30 +00:00
parent 888427f2fe
commit d905769e69
+6 -6
View File
@@ -208,18 +208,18 @@ Fl_File_Icon::find(const char *filename,// I - Name of file */
{
if (S_ISDIR(fileinfo.st_mode))
filetype = DIRECTORY;
# ifdef S_IFIFO
# ifdef S_ISFIFO
else if (S_ISFIFO(fileinfo.st_mode))
filetype = FIFO;
# endif // S_IFIFO
# if defined(S_ICHR) && defined(S_IBLK)
# endif // S_ISFIFO
# if defined(S_ISCHR) && defined(S_ISBLK)
else if (S_ISCHR(fileinfo.st_mode) || S_ISBLK(fileinfo.st_mode))
filetype = DEVICE;
# endif // S_ICHR && S_IBLK
# ifdef S_ILNK
# endif // S_ISCHR && S_ISBLK
# ifdef S_ISLNK
else if (S_ISLNK(fileinfo.st_mode))
filetype = LINK;
# endif // S_ILNK
# endif // S_ISLNK
else
filetype = PLAIN;
}