]> git.sur5r.net Git - cc65/blobdiff - include/dirent.h
Added dummy classification macros for the remaining targets - even for those that...
[cc65] / include / dirent.h
index bcc44834eec3b1fd95207b81b2f1c5c37d03d4ce..3e75c7c21175be3d27e8bdcfb5ec6a7f86a252c4 100644 (file)
@@ -84,6 +84,11 @@ struct dirent {
     char d_name[13];  /* 8.3 + trailing 0 */
 };
 
+#define _DE_ISREG(t)  (1)
+#define _DE_ISDIR(t)  (0)
+#define _DE_ISLBL(t)  (0)
+#define _DE_ISLNK(t)  (0)
+
 #elif defined(__CBM__)
 
 struct dirent {
@@ -117,12 +122,22 @@ struct dirent {
 extern struct dirent FileEntry;
 #pragma zpsym ("FileEntry");
 
+#define _DE_ISREG(t)    (1)
+#define _DE_ISDIR(t)    (0)
+#define _DE_ISLBL(t)    (0)
+#define _DE_ISLNK(t)    (0)
+
 #else
 
 struct dirent {
     char d_name[1];
 };
 
+#define _DE_ISREG(t)  (1)
+#define _DE_ISDIR(t)  (0)
+#define _DE_ISLBL(t)  (0)
+#define _DE_ISLNK(t)  (0)
+
 #endif