summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-06 14:30:30 +0000
committerManolo Gouy <Manolo>2016-04-06 14:30:30 +0000
commitd905769e6912039a318cdccfe7cd6dc510d254d6 (patch)
treea30a364713aa511437e1cc4e31833f88f1efe5af
parent888427f2fe86d958897bd1b02a3e3f6d84ad16f6 (diff)
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
-rw-r--r--src/Fl_File_Icon.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx
index 08832a7f3..a4119c922 100644
--- a/src/Fl_File_Icon.cxx
+++ b/src/Fl_File_Icon.cxx
@@ -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;
}