]> git.sur5r.net Git - cc65/commitdiff
Added Apple II classification macros for file types from struct dirent.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 24 Jun 2012 19:49:15 +0000 (19:49 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 24 Jun 2012 19:49:15 +0000 (19:49 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5738 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dirent.h

index 63a96ea82971def7ed4afa2c3c711a9e2f77b065..2a4f42f1767375f15e49ab832a66c47ebe662354 100644 (file)
@@ -73,6 +73,11 @@ struct dirent {
     }             d_mtime;
 };
 
+#define _DE_ISREG(t)    ((t) != $0F)
+#define _DE_ISDIR(t)    ((t) == $0F)
+#define _DE_ISLBL(t)    (0)
+#define _DE_ISLNK(t)    (0)
+
 #elif defined(__ATARI__)
 
 struct dirent {